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...