I convert an upload jpg - but the file size is to big
Posted: 2009-08-06T08:11:34-07:00
Hi,
I use ImageMagick to convert uploaded jpg files. Everything is fine. Up to the moment where someone else used this upload.
I have some thumbnails 60x45 Pixel. My filesize is between 1 and 3 kb. But the pictures of my friend are between 18 and 58 kb.
His pictures have 300 dpi in the original file, that's the only different I saw. So I tryed to change the dpi with -density 72x72. The dpi was sized down, but the filesize was still the same. The only way to get the kb a little bit smaler is to change the -quality. But the thing is, that my files still have the small size with the same php imagemagick programming.
So I have two problems:
1. How could it be that the same upload gives me this big different results.
2. How can I size down the kb.
Thank You
Lars
---
PS: Hope my english is o.k. to understand, greetings from germany
I use ImageMagick to convert uploaded jpg files. Everything is fine. Up to the moment where someone else used this upload.
I have some thumbnails 60x45 Pixel. My filesize is between 1 and 3 kb. But the pictures of my friend are between 18 and 58 kb.
His pictures have 300 dpi in the original file, that's the only different I saw. So I tryed to change the dpi with -density 72x72. The dpi was sized down, but the filesize was still the same. The only way to get the kb a little bit smaler is to change the -quality. But the thing is, that my files still have the small size with the same php imagemagick programming.
So I have two problems:
1. How could it be that the same upload gives me this big different results.
2. How can I size down the kb.
Thank You
Lars
---
PS: Hope my english is o.k. to understand, greetings from germany