Forums / General / Image file size growing
Kristof Coomans
Tuesday 22 August 2006 11:59:29 am
Hi
I've uploaded some jpeg images with WebDAV (default config, GD2) on a trunk installation.
When exporting the images in a content object package, I noticed that their file size has grown, although they still have the same dimensions/resolution and compression level.
Example of a file: uploaded version: 82kBexported version: 993 kB
Does anybody have a clue what happened to these files?
Thanks in advance
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Claudia Kosny
Tuesday 22 August 2006 1:15:56 pm
Hi Kristof
unfortunately no answer, just a question on how you know the properties of the exported image. Unless I understood you wrong you have exported the image into an ezpkg file. How is it possible to access the content of this file? When opening the file in a texteditor it did not look like a familiar format to me.
Greetings from Luxembourg
Claudia
Tuesday 22 August 2006 10:51:43 pm
Hello Claudia
The ezpkg files are actually gzipped tar files. You can extract them with <i>tar -xzf file.ezpkg</i> or with other programs which support tar and gzip, like 7zip. Afterwards, you will find the images in the simplefiles directory.
By the way, you're doing a great job on the forums ;-)
Wednesday 23 August 2006 9:49:55 am
Thanks for the answer. With this information I can tell you now that I did not have the problem with the image size when exporting an image as a object package. Did you have a look at the picture with a text (or hex) editor? Maybe you can see there why the pic is so big now und thus get an idea what is causing the problem.
Regarding the forum: Well at the moment I try to get a better idea on how ez actually works instead of just using it as before. So it is quite interesting to see what problems other people have and to find some idea on how to solve it. Unfortunately this can take quite some time which I do not always have, so don't expect it to last. I will do my best though.
Thursday 24 August 2006 11:48:51 am
The results of my tests are really unpredictable. Sometimes the file grows, sometimes it doesn't. I inspected the uploaded images inside the storage dir and they are already bigger there so WebDAV is guilty, not the package export.
Will try to investigate a bit further the next days.
BTW I'm using IE on WinXP SP2.