Hi.
When i upload images from a zip file, with JPEG extension, doesn't displays thumbs.
This happens when i upload JPEG.
Other extensions are ok.
I read the plugin file (sigpro.engine, off version 2.0) and see:
line 197 :
$imagetypes = array('/\.gif$/i', '/\.jpg$/i', '/\.jpeg$/i', '/\.png$/i');
line 282 to 301:
// save the resized copy
$thumbname = $thbimgfolder.$prefix.substr(md5($srcimgfolder),1,10).$name;
switch($type) {
case 1:
if (function_exists('imagegif')) {
$success = imagegif($thumb, $site_absolutepath.$thumbname.'.gif');
$thumb_name = $prefix.$name.'.gif';
} else {
$success = imagejpeg($thumb, $site_absolutepath.$thumbname.'.jpg', $jpg_quality);
$thumb_name = $prefix.$name.'.jpg';
}
break;
case 2:
$success = imagejpeg($thumb, $site_absolutepath.$thumbname.'.jpg', $jpg_quality);
$thumb_name = $prefix.$name.'.jpg';
break;
case 3:
$success = imagepng($thumb, $site_absolutepath.$thumbname.'.png');
$thumb_name = $prefix.$name.'.png';
}
If i upload a JPEG image, the code does not deal JPEG, just JPG.
The code generated after thumbs created does not works.. .
Who can help me ?