[TYPO3-dev] passing params to image magick to clean jpgs from metadata
Tim Kleigrewe
x27 at e27.com
Thu Aug 16 18:16:43 CEST 2007
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