I use Imagemagick as part of a shell script to resize and watermark photos for uploading to the Internet. This involves resizing them down to a maximum size of 1280 pixels in either direction (maintaining the aspect ratio), and stamping them with a watermark.
I've previously used the version of ImageMagick which comes with Ubuntu 14.10:
Code: Select all
Version: ImageMagick 6.7.7-10 2014-08-21 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
Code: Select all
Version: ImageMagick 6.8.9-9 Q16 x86_64 2015-01-06 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
What is causing the white boxes around the SVG output? Is this an Imagemagick bug, or a problem in the way I'm using it?
Here is the command line my shell script uses:
Code: Select all
convert -filter Lanczos \
InputFile.jpg \
-set option:filter:filter Lanczos \
-set option:filter:blur 0.8 \
-resize 1280x1280 \
-quality 97 \
-gravity southeast \( -background none "watermark.svg" -geometry 426x \) -composite \
OutputFile.jpg
Phil.