[TYPO3-dev] passing params to image magick to clean jpgs from metadata
Steffen Kamper
steffen at sk-typo3.de
Mon Aug 20 11:55:49 CEST 2007
Hi,
there is no need for hardcoded Params, they can be declared in Typoscript,
e.g.
image.file.params = -sharpen 50 +profile "*" -quality 100
vg Steffen
"Tim Kleigrewe" <x27 at e27.com> schrieb im Newsbeitrag
news:mailman.1.1187280849.11716.typo3-dev at lists.netfielders.de...
> hi list,
>
> an old topic but still not really solved - meta data/profiles in jpg
> images. a stupid browser named Win IE 5.5 even crashed by viewing images
> that contained mac xml/photoshop metadata. IM keeps this profile info by
> default.
>
> here an example of a user submitted image, not 'saved for web'. have a
> look at the binary to see lots of xml:
>
> http://demo.e27.com/VotingGalleryImage_430.jpg (170k)
>
> and a clean variant with '-strip' or ' +profile "*"' recalculated
> parameter used by IM5:
>
> http://demo.e27.com/VotingGalleryImage_430_repaired.jpg (37k)
>
> that works fantastic, but i had to hardcode that parameter to the t3lib
> stdGraphic class 3 times.
>
> line 268: $this->cmds['jpg'] = $this->cmds['jpeg'] = '-colorspace RGB
> -sharpen 50 +profile "*" -quality '.$this->jpegQuality;
>
> the best practice would be in my opinion to have a localconf var that
> could be set with 'additional params' for IM. There are other possible
> usfull parameters that could be passed to IM from there e.g.
> '-copyright' if someone needs it.
>
> one problem left, an option to tell IM to recalculate images that are
> allready in the right size, or does this feature exist?
>
>
>
> regards tim
>
More information about the TYPO3-dev
mailing list