convert empty .htm .html ... removes source file
Posted: 2011-09-15T16:41:03-07:00
Hi all,
Following command removes source file in case it is empty
# convert -thumbnail 100x100 -background white -gravity center -quality 50 -extent 100x100 -filter Box ./index.html jpg:-
Output (for ImageMagick-6.7.2-6) is following:
sh: html2ps: command not found
convert: delegate failed `"html2ps" -U -o "%o" "%i"' @ error/delegate.c/InvokeDelegate/1058.
convert: unable to open image `/tmp/magick-UxVxLBRI': No such file or directory @ error/blob.c/OpenBlob/2588.
convert: unable to open file `/tmp/magick-UxVxLBRI': No such file or directory @ error/constitute.c/ReadImage/571.
convert: missing an image filename `jpg:-' @ error/convert.c/ConvertImageCommand/3015.
OS Linux Debian 6.0
ImageMagick-6.7.2-6 (custom build)
Thanks
Following command removes source file in case it is empty
# convert -thumbnail 100x100 -background white -gravity center -quality 50 -extent 100x100 -filter Box ./index.html jpg:-
Output (for ImageMagick-6.7.2-6) is following:
sh: html2ps: command not found
convert: delegate failed `"html2ps" -U -o "%o" "%i"' @ error/delegate.c/InvokeDelegate/1058.
convert: unable to open image `/tmp/magick-UxVxLBRI': No such file or directory @ error/blob.c/OpenBlob/2588.
convert: unable to open file `/tmp/magick-UxVxLBRI': No such file or directory @ error/constitute.c/ReadImage/571.
convert: missing an image filename `jpg:-' @ error/convert.c/ConvertImageCommand/3015.
OS Linux Debian 6.0
ImageMagick-6.7.2-6 (custom build)
Thanks