very different filesize after jpg upload with convert
Posted: 2009-08-07T01:55:18-07:00
Hello,
I use php and imagemagick to create some thumbnails.
passthru("convert -gemetry 60x40 -quality 70 -densety 72x72 $inPic $outPic");
Everything is working fine, but there filesize of the result ist very different. If I upload an jpg my result pic is something about 2 kb, if a friend uploads an file the result pic is near 30 kb up to 50 kb. The first idear I had was the dpi resulution. My pictures are already in 72 dpi before uploading. His pictures 300 dpi for upload. So I searched for changing dpi with -densety but the result of the file size is still the same. His pictures are in the right pixel size with 60x40 but his uploaded pictures are more then 10 times bigger than mine. The quality of the result is not different.
How can I change the file size.
Greetings
Lars
I use php and imagemagick to create some thumbnails.
passthru("convert -gemetry 60x40 -quality 70 -densety 72x72 $inPic $outPic");
Everything is working fine, but there filesize of the result ist very different. If I upload an jpg my result pic is something about 2 kb, if a friend uploads an file the result pic is near 30 kb up to 50 kb. The first idear I had was the dpi resulution. My pictures are already in 72 dpi before uploading. His pictures 300 dpi for upload. So I searched for changing dpi with -densety but the result of the file size is still the same. His pictures are in the right pixel size with 60x40 but his uploaded pictures are more then 10 times bigger than mine. The quality of the result is not different.
How can I change the file size.
Greetings
Lars