[TYPO3-dam] resize uploaded images

Styrmir Magnússon styrmirm at hive.is
Sat Feb 7 23:34:06 CET 2009


Hello

I was reading the manual for dam_cron and I saw that it is maybe possible 
to resize all the images that are uploaded.

If I would use this line:
/usr/bin/php /var/www/dam/typo3conf/ext/dam_cron/cron/dam_indexer.php 
--setup=/var/www/dam/uploads/tx_damcron/example.xml 
--exec='/usr/bin/convert -resize 800 -crop 800x600+0+0 FILE FILE'

I could probably then also use mogrify instead of convert. 

I would like to do this because on my site there are many uploads each 
day and I see no reason for keeping all this images in orginal 
resolution. 

What I am thinking about is how to let this work -recursive, and also if 
it is somehow possible to let this happen at the same time as the image 
is uploaded, like the file is indexed when it is uploaded.

Best regards
Styrmir


More information about the TYPO3-project-dam mailing list