I convert an upload jpg - but the file size is to big

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Lars

I convert an upload jpg - but the file size is to big

Post by Lars »

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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: I convert an upload jpg - but the file size is to big

Post by Bonzo »

I upload and resize 1Mb files without a problem.

You do not say what error you are getting, what code you are using or what version of Imagemagick.

This post should have started off in the User forum
Post Reply