Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
image = ImageList.new("image-input.png")
image.quantize(number_colors=256, colorspace=RGBColorspace, dither=RiemersmaDitherMethod, tree_depth=0, measure_error=false)
image2 = Image.new(240,240)
color = Pixel.from_color('#E1E1E1')
(0..image.columns).each do |x|
(0..image.rows).each do |y|
pixel = image.pixel_color(x, y)
if pixel.fcmp(color)
image2.pixel_color(x, y, "#000000")
end
end
end