Copy color from source image

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?".
agriz
Posts: 237
Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308

Re: Copy color from source image

Post by agriz »

Sorry, I was not feeling well.

The script is awesome.
I just updated my fedora (yum -y update) I got 6.7.x.x of imagemagick.
-virtual-pixel black
What does it do? What are the other available options?
Also, I tried different values for -fill. I am confused in using that too.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Copy color from source image

Post by fmw42 »

What is your exact command line?

-virtual-pixel sets the color to use when the processing goes outside the bounds of the image. This may be needed for -distort, -convolve, -blur, i.e. any process that is not pixel-by-pixel, but requires some neighborhood of each pixel to process it.

convert -list virtual-pixel

will list all the options or see http://www.imagemagick.org/script/comma ... tual-pixel

-fill is used to set the color for certain other operations, such as -colorize, -opaque, -transparent, etc

see
http://www.imagemagick.org/script/comma ... s.php#fill
http://www.imagemagick.org/Usage/color_mods/#colorize
http://www.imagemagick.org/Usage/color_mods/#tint
http://www.imagemagick.org/Usage/color_basics/#replace
agriz
Posts: 237
Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308

Re: Copy color from source image

Post by agriz »

Thanks for the links. I will go through with it to learn more.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Copy color from source image

Post by anthony »

See also a graphic examples of the virtual pixels surrounding the image in IM examples, Miscellanious Virtual Pixels
http://www.imagemagick.org/Usage/misc/#virtual-pixel

Default VP is 'edge' which replicate the closest edge pixel outward. this works well for general images on a solid color background, and for bluring of images, but in other cases (like distort) can result in 'lines' of pixels radiating horizontally and vertically outward from an image...
Image Image Image
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply