Code: Select all
convert input.tif -depth 8 -flatten +matte -quality 82 \
-write mpr:tmp -write fullsize.jpg +delete \
mpr:tmp -intent relative -black-point-compensation -profile sRGB.icc +profile "!iptc,*" -resize 2000x2000 -write mpr:tmp -write xlarge.jpg +delete \
mpr:tmp -resize 1100x800 -write mpr:tmp -write large.jpg +delete \
mpr:tmp -tile watermark.png -draw "rectangle 0,0 1100,800" -write large_wm.jpg +delete \
mpr:tmp -resize 450x450 -write mpr:tmp -write medium.jpg +delete \
mpr:tmp -tile watermark.png -draw "rectangle 0,0 450,450" -write medium_wm.jpg +delete \
mpr:tmp -resize 150x150 -write mpr:tmp -write small.jpg +delete \
mpr:tmp -tile watermark.png -draw "rectangle 0,0 150,150" -write small_wm.jpg +delete \
mpr:tmp -resize 75x75 -write mpr:tmp -write xsmall.jpg +delete \
mpr:tmp -tile watermark.png -draw "rectangle 0,0 75,75" xsmall_wm.jpg
Code: Select all
convert input.tif -depth 8 -flatten +matte -quality 82 \
-write mpr:tmp -write fullsize.jpg +delete \
mpr:tmp -intent relative -black-point-compensation -profile sRGB.icc +profile "!iptc,*" -resize 2000x2000 -write mpr:tmp -write xlarge.jpg +delete \
mpr:tmp -resize 1100x800 -write mpr:tmp -write large.jpg +delete \
mpr:tmp miff:- |\
composite -quality 82 -tile watermark.png - large_wm.jpg \
mpr:tmp -resize 450x450 -write mpr:tmp -write medium.jpg +delete \
mpr:tmp miff:- |\
composite -quality 82 -tile watermark.png - medium_wm.jpg \
mpr:tmp -resize 150x150 -write mpr:tmp -write small.jpg +delete \
mpr:tmp miff:- |\
composite -quality 82 -tile watermark.png - small_wm.jpg \
mpr:tmp -resize 75x75 -write mpr:tmp -write xsmall.jpg +delete \
mpr:tmp miff:- |\
composite -quality 82 -tile watermark.png - xsmall_wm.jpg