Mogrify compose
Posted: 2018-07-11T15:57:33-07:00
Hi,
Couple of years ago I was using this line:
to add a 1 pixel Black border around all the images in a folder while maintaining their transparency. Now it's not working anymore, the transparency is filled with black.
I looked a bit and found about the Compose option and I tried this:
However, it's not working. I get this error:
Compose is listed as an option here: https://www.imagemagick.org/script/mogrify.php
What am I doing wrong?
Also, any other option to create 1 pixel border around the images and keep their transparency? Note that the border can't be drawn on the image itself, it should be on the "outside", basically increasing the image by 2 pixels on both the vertical and the horizontal.
Thank you.
Couple of years ago I was using this line:
Code: Select all
mogrify -format png -alpha off -bordercolor Black -border 1 -alpha on *.png
I looked a bit and found about the Compose option and I tried this:
Code: Select all
mogrify -bordercolor black -compose Copy -border 1 *.png
Code: Select all
mogrify: unrecognized option `-compose' @ error/mogrify.c/MogrifyImageCommand/45
06.
What am I doing wrong?
Also, any other option to create 1 pixel border around the images and keep their transparency? Note that the border can't be drawn on the image itself, it should be on the "outside", basically increasing the image by 2 pixels on both the vertical and the horizontal.
Thank you.