I am processing a LOT of images (several thousand a day). One of the tasks is to produce a scaled version of the image at different sizes (300x300, 150x150, 100x100, 60x60).
Initially I was doing something like this ...
Code: Select all
convert '/prod/891_original.jpg' -resize 300x300 '/prod/891_large.jpg'
convert '/prod/891_original.jpg' -resize 150x150 '/prod/891_medium.jpg'
convert '/prod/891_original.jpg' -resize 100x100 '/prod/891_small.jpg'
convert '/prod/891_original.jpg' -resize 60x60 '/prod/891_tiny.jpg'
Code: Select all
convert '/prod/891_original.jpg' -resize 300x300 +write '/prod/891_large.jpg' -resize 150x150 +write '/prod/891_medium.jpg' -resize 100x100 +write '/prod/891_small.jpg' -resize 60x60 +write '/prod/891_tiny.jpg'
Code: Select all
convert: option requires an argument `+write' @ error/convert.c/ConvertImageCommand/2996.
Any suggestions?