Member
Member
breglis   2010-01-31, 01:12
#1

hi,
I have discovered a bug in the creation of Thumbnails in dyn. Albums that only
contain video. the function getAlbumThumbImage() in class-album.php does not
check for the existence of video-thumbs..
i.e. the files with identical name sitting next to the flv file

well once again I would like to offer something back to this great piece of software !

adding this to line 713 in class-album.php will fix the issue:


if (is_valid_image(substr($thumb['filename'],0,-4).".jpg")) {
$alb = new Album($this->gallery, $thumb['folder']);
$thumb = newImage($alb, substr($thumb['filename'],0,-4).".jpg");
if ($thumb->getShow()) {
$this->albumthumbnail = $thumb;
return $thumb;
}
}


I suggest that this or some more glamorous solution goes into the next release

Member
Member
sbillard   2010-01-31, 05:42
#2

Thanks for the alert. The final solution will have to be "more glamorous" as at least there are other formats than JPEG that could be thumbnail standins.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.