$fullpath = $this->parent->translate_path($details['directory_path']) ."/thumbs/". $width ."_". $details['name'];
}
+ if(!file_exists($fullpath)) {
+ $this->parent->gen_thumb($idx, 0, 1);
+ }
+ if(!is_readable($fullpath)) {
+ die("File ". $fullpath ." is not readable. Check the permissions");
+ }
+
$tmp = getimagesize($fullpath);
$mime = $tmp['mime'];