[TYPO3-core] RFC: #10025: ImageMagick generates larger than necessary files

Oliver Hader oliver at typo3.org
Fri Mar 27 02:12:25 CET 2009


Hi,

Steffen Kamper schrieb:
> Hi,
> 
> This is SVN patch request.
> 
> Type: Feature
> 
> Branches: trunk
> 
> BT reference: http://bugs.typo3.org/view.php?id=10025
> 
> Problem:
> Images may contain profile information as you know from EXIF. This
> information block can be up to 60KB.
> 
> When generating thumbnails, this information is not necessary and blow
> sizes of generated thumbnails.
> 
> Solution:
> use -strip to get rid of the profile information.
> 
> Additional informations:
> http://www.imagemagick.org/Usage/thumbnails/#profiles
> http://www.imagemagick.org/www/command-line-options.html#strip

Attached is a new patch that allows to define the command to be used for
IM/GM (default is "+profile '*'"). Furthermore stripping profiles can be
defined on a per IMAGE-object basis like this:

10 = IMAGE
10 {
  file = ...
  file.stripProfile = 0|1
}

I've tested this with IM on Mac OS X and with the patch about 60% of the
file size can be saved.

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 10025_v7.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090327/27fe08bf/attachment.txt 


More information about the TYPO3-team-core mailing list