Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Modifications    Mod Requests and Support  ›  Imagemagick's file size Moderators: 10 Series Support Team
Users Browsing Forum
No Members and 3 Guests

Imagemagick's file size  This thread currently has 361 views. Print
1 Pages 1 Recommend Thread
nahual
June 13, 2007, 7:16pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 68
Posts Per Day: 0.03
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 1 days 13 hours 15 minutes
Location: Baja California, Mexico
Hi, I have installed in my forum Upload resize mod. It is working fine but different than its default behavior:
I made a test upload to my forum of one photo and ended with an image of 142k:
http://www.fororeptiles.org/cgi-bin/forum/Blah.pl?m-1181782722/

then I uploaded the same photo to my test forum at another server and the final image is 52K!!!
http://www.bajapesca.net/cgi-bin/forum/Blah.pl?m-1181782114/

I'm using 600 x 600 as the mod settings in both forums. Does anybody have an idea why I'm getting different sizes at these two servers?

Could be this imagemagick's version related? I already checked at my host and the the one with the forum with bigger file size is running the latest imagemagick version (6.x), my test forum, the one with the smaller size file is using 5.x imagemagick version.

As you can see quality is about the same..

Thanks for your time..


Luis Larios
forum:  http://www.fororeptiles.com
Logged Offline
Private Message Private message
Craig
June 13, 2007, 11:20pm Report to Moderator Report to Moderator

SQL Support Team
Posts: 3,611
Gender: Male
Posts Per Day: 1.08
Reputation: 97.73%
Reputation Score: +215 / -5
Time Online: 14 days 16 hours 1 minutes
Location: Germany
Age: 42
It could be the version, but it could also be the quality setting for uploaded images.  I'm not familar with that mod, so I don't know if it has quality settings, but that would be my guess.

-Craig.


Don't just ask a question.
Instead ask a question, give us a screen shot and post a link to your forum.
Help us help you make your forum better!


If I helped...increase my Reputation by clicking here.
Logged Offline
Site Site Private Message Private message ICQ ICQ Reply: 1 - 5
Martin
June 14, 2007, 6:38am Report to Moderator Report to Moderator
Guest User
This has to be sever setup, the 2 servers have different versions or have different defaults within imagemagick.
Logged
Reply: 2 - 5
nahual
June 16, 2007, 10:59am Report to Moderator Report to Moderator

E-Blah Member
Posts: 68
Posts Per Day: 0.03
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 1 days 13 hours 15 minutes
Location: Baja California, Mexico
Thanks for your replies, It seems that is was something version related. Anyway I made a little research and was able to end with a good quality and low file size conversions:
I change:
Code
if ($fnchk eq "jpg" || $fnchk eq "gif"  || $fnchk eq "png") {
$exit_code = system("convert -sample 400x400\\> $savedfile $savedfile");


for:
Code
if ($fnchk eq "jpg" || $fnchk eq "gif"  || $fnchk eq "png" || $fnchk eq "bmp") {
$exit_code = system("convert -quality 90 -thumbnail 600x600\\> $savedfile $savedfile");


Also enabled the eblah built in thumbnail funtion, this way users can click on an tumbnail (GD) image of a few bytes to gain access to good quality and small file size 600 x 600 image(IM)!

-sample was replaced for -thumbnail in IM code as this one makes a much better work with edges..
Althought this does not resize bmps it does cut some file size, maybe just the photo profiles...

Thanks again...


Luis Larios
forum:  http://www.fororeptiles.com
Logged Offline
Private Message Private message Reply: 3 - 5
nahual
June 16, 2007, 1:07pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 68
Posts Per Day: 0.03
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 1 days 13 hours 15 minutes
Location: Baja California, Mexico
Quoted from nahual
Thanks for your replies, It seems that is was something version related. Anyway I made a little research and was able to end with a good quality and low file size conversions:
I change:
Code
if ($fnchk eq "jpg" || $fnchk eq "gif"  || $fnchk eq "png") {
$exit_code = system("convert -sample 400x400\\> $savedfile $savedfile");


for:
Code
if ($fnchk eq "jpg" || $fnchk eq "gif"  || $fnchk eq "png" || $fnchk eq "bmp") {
$exit_code = system("convert -quality 90 -thumbnail 600x600\\> $savedfile $savedfile");


Also enabled the eblah built in thumbnail funtion, this way users can click on an tumbnail (GD) image of a few bytes to gain access to good quality and small file size 600 x 600 image(IM)!

-sample was replaced for -thumbnail in IM code as this one makes a much better work with edges..
Althought this does not resize bmps it does cut some file size, maybe just the photo profiles...

Thanks again...


take a look: Original uploaded image 4.56MG, after IM conversion 134K, GD thumbnail 31K!!
http://www.fororeptiles.org/cgi-bin/forum/Blah.pl?b-gtortugas/m-1182020433
NOTE: click on the 31k thumbnail to see the 134k IM converted image..


Luis Larios
forum:  http://www.fororeptiles.com
Logged Offline
Private Message Private message Reply: 4 - 5
nahual
June 16, 2007, 7:39pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 68
Posts Per Day: 0.03
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 1 days 13 hours 15 minutes
Location: Baja California, Mexico


Luis Larios
forum:  http://www.fororeptiles.com
Logged Offline
Private Message Private message Reply: 5 - 5
1 Pages 1 Recommend Thread
Print

E-Blah Community    Modifications    Mod Requests and Support  ›  Imagemagick's file size