[Typo3-dev] Suggestion for an image watermark extension

Boris Senker typo3 at dvotocka.hr
Sun Nov 28 12:26:21 CET 2004


Guys, I really don't know how exactly it would be done with TYPO3, all I 
know is how it might be done on the ImageMagick side:


-------------------------------------------------------------------------
composite -quality 65 -compose atop -gravity southeast logo.gif 
target.jpg target.jpg
-------------------------------------------------------------------------


Puts logo.gif with transparency in the lower right corner of target.jpg 
and produces a final jpeg with quality 65 with the same name as 
target.jpg (overwrites).

Also works with wildcards so whole folders can be handled.


See also http://www.cit.gu.edu.au/~anthony/graphics/imagick/annotating/


ImageMagick is fascinating... So TYPO3 extension would have to handle 
params as *.jpg *.JPG (whole folders), single image, placement 
(southeast in example) and quality.


JHEAD

Additionally, a small JHEAD optimizer extension could also be made, that 
instructs JHEAD to extract all EXIF data from digital camera images and 
make progressive JPEGs.

JHEAD is small, fast, and comes in many Linux distros by default, also 
is available for Windows.

With the following commands I have cut the folder size of 207 kb to 160 
kb on the fly - first command extracts digital camera info, the second 
one makes progressive jpegs which also reduces size. Note the quality of 
80 which is pretty high, if put to 65-70 savings are even better:


-------------------------------------------------------------------------
jhead -cmd "mogrify -quality 80 &i" *.jpg
jhead -cmd "jpegtran -progressive &i &o" *.jpg
-------------------------------------------------------------------------


NOTE: I haven't figured out how to modify those two commands to work 
also with subfolders. And on Linux, if JPEG has an extension in 
uppercase ie. .JPG the command won't be executed, so *.JPG has to be added.


Boris Senker


: dvotocka design
________________________________________________________________

Graphic Design for Print and Web, Prepress, Website Production

J. Laurencica 8, 10000 Zagreb, Croatia
http://www.dvotocka.hr




More information about the TYPO3-dev mailing list