Forums / Install & configuration / Image system: incorrect behaviour or my mistake?
Andrey Astakhov
Thursday 10 May 2007 4:43:04 am
Let' assume i have 2 pictures: Picture1: 500px*375px Picture2: is resized Picture1 (200px*150px) saved in a photo editor without(!) compression.Both pictures have maximal quality.
Then I upload both pictures to Exponential.My image.ini.override:
[MIMETypeSettings] Quality[]=image/jpeg;75 [GD] IsEnabled=false [ImageMagick] IsEnabled=true [small] Filters[] Filters[]=geometry/scalewidthdownonly=100
Now i have: 'small' variation of Picture1 is about 25KB'small' variation of Picture2 is about 5KB
Both 'small' variations are almost identical - pixel-to-pixel, but size differs drastically.
I can't understand it: i tried to resize both pictures in adobe photoshop with q=75 and size=100px*75px and result pictures have same size.
What's going on? Is it incorrect resizing in ImageMagick or my mistake in settings?
Stéphane Bullier
Friday 11 May 2007 3:18:11 am
I can't see your info about [ImageMagick]
ExecutablePath=/usr/local/binExecutable=convert
You can find more info here : http://ez.no/download/ez_publish/changelogs/ez_publish_3_3/new_image_system
Stéphane
Bruce Morrison
Friday 11 May 2007 3:46:10 am
Hi Andre
One thing you may want to check is if both the orginal images have EXIF information. One senario is that Picture 1 does have it and Picture 2 doesn't, possibly stripped by the photo editor. If it is present it can actually take up more bytes than the image on smaler images.
See: http://suffandnonsense.blogspot.com/2006/04/reduce-thumbnail-size-in-ez-publish-by.htmlfor more info.
CheersBruce
My Blog: http://www.stuffandcontent.com/ Follow me on twitter: http://twitter.com/brucemorrison Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish
Thursday 17 May 2007 2:24:20 am
2 Stéphane HamelinImageMagick works, it's checked, but anyway thank you for this reply.
2 Bruce MorrisonYou are absolutely right. I couldn't imagine that image comment info takes 20KB. Thank you, your blog is very heplful.