[TYPO3-english] ImageMagick colorspace resize technique with LocalImageProcessor
Fabrice Morin
fmo at sword.eu
Thu Feb 19 18:08:01 CET 2015
Hello,
According to the following ImageMagick doc, it is possible to apply a colorspace correction before resizing an image :
http://www.imagemagick.org/Usage/resize/#resize_colorspace
The related command is :
convert earth_lights_4800.tif -colorspace RGB -resize 500 -colorspace sRGB earth_lights_colorspace.png
The colorspace is changed before the resize, and restored after.
I use TYPO3 v6.2 and I'd like to use this resize technique with the FileProcessingService and LocalImageProcessor classes.
Unfortunately, this seems not possible because this ends up in the function CommandUtility::imageMagickCommand, which doesn't seem to be able to generate the necessary command line for PNG output (i.e. settings the option "-colorspace RGB" before the actual command "-resize 500").
Is there an alternative for doing that ?
Regards,
Fabrice
More information about the TYPO3-english
mailing list