simonthompson99
9/23/2019 - 3:24 PM

[Imagemagick One-liners] Onelines for Imagemagick for image manipulation #bash #imagemagick

[Imagemagick One-liners] Onelines for Imagemagick for image manipulation #bash #imagemagick

# make white transparent
convert <in>.png -transparent white <out>.png

# change image to a4-sized pdf
convert -density 300 -page a4 <in>.png <out>.pdf

# remove large white backgrounds from multiple images
mogrify -trim +repage *.png