image - ImageMagick Set Background Colour -



image - ImageMagick Set Background Colour -

i attempting utilize next line of code set background colour of image 1 white.

(i.e. first image 'image1.png' needs cleared , become blank white image. overlay image 2 on top of blank image)

here line of code running in command line:

convert \( image1.png -background white \) \( image2.png -resize 250x105 \) -geometry +347+400 -composite -format jpg -quality 90 image1.png

alternatively, improve if generate blank canvas image2.png placed upon. first effort using 2 images working first.

not sure trying do, or how big image1 , image2 supposed be, should going if create stuff:

# create image2 reddish square coz don't know improve convert -size 100x100 xc:red image2.png # create bluish canvas , read in image2, resize , splat on top convert -size 1000x1000 xc:blue \ \( image2.png -resize 250x105\! \) \ -geometry +347+400 -composite out.png

if want utilize image1 rather create empty canvas (presumably because image1 has right dimensions or something), can utilize command whilst setting white in process :

convert image1.png -evaluate set 65535 \ \( image2.png -resize 250x105\! \) \ -geometry +347+400 -composite out.png

image imagemagick png jpeg imagemagick-convert

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

SQL Server : need assitance parsing delimted data and returning a long concatenated string -