I have just installed PRO version (v 1.2) and noticed that the time it takes to load the page with SIG significantly increased (in comparison with Free version). Ok, I thought that it just the 1st time - the plugin generates previews and saves them to disk. But the performance didn't improve - all subsequent page loads took the same large (about 5 seconds) time.
I checked the code and found the bug, which caused checks for thumbnail existence to always fail.
File plugin_jw_sigpro.php: the code should be:
I checked the code and found the bug, which caused checks for thumbnail existence to always fail.
File plugin_jw_sigpro.php: the code should be:
// create thumbnails
$toname = $mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format;
$toname_live = $mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format;
if (file_exists($toname) && (filemtime ($toname) + $cache_expire_time * 60 > time())) {
$html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$toname_live.'" />'.$rightcomment;
} else {
$fromname = $mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a];
$result = makeThumb( $fromname, $toname, $image_type, $_quality_, $_width_final_, $_height_final_);
if($result)
$html .=$leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$toname_live.'" />'.$rightcomment;
else
$html .='<span>Error creating thumbnail!</span>';
}