Page 3 of 3
Re: Copy color from source image
Posted: 2012-02-23T12:30:38-07:00
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.
Re: Copy color from source image
Posted: 2012-02-23T14:23:26-07:00
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
Re: Copy color from source image
Posted: 2012-02-23T15:09:13-07:00
by agriz
Thanks for the links. I will go through with it to learn more.
Re: Copy color from source image
Posted: 2012-02-23T18:56:44-07:00
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...