feature request: pass color to -virtual-pixel

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
RetroJ
Posts: 108
Joined: 2006-10-25T08:12:50-07:00

feature request: pass color to -virtual-pixel

Post by RetroJ »

The title of this post sums it up in a nutshell. I would like to be able to pass a specific color to the -virtual-pixel option of convert. Thanks!

(using ImageMagick 6.3.0 on Debian)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Use the -background option to set the virtual pixel value.
RetroJ
Posts: 108
Joined: 2006-10-25T08:12:50-07:00

Post by RetroJ »

Ah, thank you!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

If the color is 'none' use -virtual-pixel transparent.

see IM examples, Edge Effects and Virtual Pixels
http://www.cit.gu.edu.au/~anthony/graph ... e/#virtual
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply