This is only a problem with the internal cache generation, and does not apply if you are using imagecache to generate your thumbs.
So the 3 supported image types are jpg, png, and gif. However, if we name our image files with uppercase letters (i.e. JPG, PNG, GIF), the internal cache chokes on createthumb().
These are the errors that everybody has been getting:
warning: imagesx(): supplied argument is not a valid Image resource in ...
warning: imagesy(): supplied argument is not a valid Image resource ...
warning: imagecopyresampled(): supplied argument is not a valid Image resource ...
The problem can be fixed by changing the first 2 lines of the createthumb() function in fast_gallery.cache.class.php:
public function createthumb($name, $filename, $new_w, $new_h, $type) {
$arTmp = explode('.',$name);
$type = $arTmp[count($arTmp) - 1];
...
change it to this:
public function createthumb($name, $filename, $new_w, $new_h, $type) {
$arTmp = explode('.',$name);
$type = strtolower(end($arTmp));
...
Comments
Comment #1
ncy commentedComment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.