Thank you. Could I have a hint at which file was revised? I went over to github and saw the class-video.php was updated recently, but that was working fine before.
In the meantime, I lifted the following code from class-video.php and added it to the class-AnyFile.php and the thumbnails displayed correctly:
[code]
/**
* Get a default-sized thumbnail of this image.
*
* @return string
*/
function getThumb($type = 'image') {
$ts = getOption('thumb_size');
if (getOption('thumb_crop')) {
$crop = true;
$sw = getOption('thumb_crop_width');
$sh = getOption('thumb_crop_height');
list($custom, $cw, $ch, $cx, $cy) = $this->getThumbCropping($ts, $sw, $sh);
} else {
$crop = false;
$sw = $sh = $cw = $ch = $cx = $cy = null;
}
$wmt = getOption('AnyFile_watermark');
if (empty($wmt)) {
$wmt = getWatermarkParam($this, WATERMARK_THUMB);
}
if ($this->objectsThumb == NULL) {
$mtime = $cx = $cy = NULL;
$filename = makeSpecialImageName($this->getThumbImageFile());
if (!getOption('AnyFile_watermark_default_images')) {
$wmt = '!';
}
} else {
$filename = filesystemToInternal($this->objectsThumb);
$mtime = filemtime(ALBUM_FOLDER_SERVERPATH . '/' . internalToFilesystem($this->imagefolder) . '/' . $this->objectsThumb);
}
$args = getImageParameters(array($ts, $sw, $sh, $cw, $ch, $cx, $cy, null, true, $crop, true, $wmt, NULL, NULL), $this->album->name);
return getImageURI($args, $this->album->name, $filename, $mtime);
}
/**
* Returns an array with widht and height the sidecar thumb image
*
* @since ZephotoCMS 1.5.8
*
* @return array
*/
function getThumbDimensions() {
if (!is_null($this->thumbdimensions)) {
return $this->thumbdimensions;
}
$imgfile = $this->getThumbImageFile();
$image = zp_imageGet($imgfile);
$width = zp_imageWidth($image);
$height = zp_imageHeight($image);
return $this->thumbdimensions = array(
'width' => $width,
'height' => $height
);
}
[/code]