ZenphotoCMS Forum
how to use video thumbnail - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: how to use video thumbnail (/thread-13257.html)



how to use video thumbnail - vincent3569 - 2019-01-15

hi

as I can see there https://www.zenphoto.org/news/features/#manage-image-video-and-audio-files, mp4 video files are supposed to be supported by zenphoto.
so, I uploaded a mp4 file but there there is wrong thumbnail for it:

  • this is a default picture of mp4
  • it is not sized according thumb size values of my theme.

you can here: https://test.vincentbourganel.fr/images/illustrations/

can you help me?

ps: I have the issue with mp3 files and text files




how to use video thumbnail - acrylian - 2019-01-15

Sidecar images (which their actual name is since it is not for videos only) are not exactly sized since they are just default placeholder images. They are small and ZP does not resize images that are smaller than the requested size by default. You should upload your own sidecar images, e.g. a screenshot of the video, which then would be sized correctly.




how to use video thumbnail - vincent3569 - 2019-01-15

ok, thanks
found dinfos here : https://www.zenphoto.org/news/problems-with-albums-and-images/#------thumbnails-for-videos-or-other-non-standard-

is there a way to change these placeholder images with another ones from my theme?




how to use video thumbnail - acrylian - 2019-01-15

Yes, place images with the same names as the originals (within class-video) within an images folder within your theme. But note that these still may not exactly behave like real images. Better is always if the user of the site uploads real custom sidecar images.




how to use video thumbnail - vincent3569 - 2019-01-15

do you mean to have images called mp4Default.png, mp3Default.png, textDefault.png... in the images folder of my theme?
of course have real images is better, but my idea is to have correct placeholder for my theme.




how to use video thumbnail - acrylian - 2019-01-15

Yes, those.




how to use video thumbnail - vincent3569 - 2019-01-15

it doesn't work.

tested with basic theme and a mp3Default.png added in images folder.
I used a png files from here: https://www.pngrepo.com/vectors/mp3/
and you can see the result here: https://test.vincentbourganel.fr/images/illustrations/page/2/
there is a dark picture for the 'La panse de brebis farci" mp3 file.




how to use video thumbnail - fretzl - 2019-01-15

I see the mp3 image here:
https://test.vincentbourganel.fr/images/illustrations/




how to use video thumbnail - acrylian - 2019-01-15

I see it as well.




how to use video thumbnail - vincent3569 - 2019-01-15

that is not the right image (I remove it).
see here, the only mp3 file: https://test.vincentbourganel.fr/images/illustrations/page/2/




how to use video thumbnail - acrylian - 2019-01-15

I don't understand then. And the link is leading to "object not found".




how to use video thumbnail - fretzl - 2019-01-15

Zenphoto Error: the requested object was not found. ??




how to use video thumbnail - vincent3569 - 2019-01-15

sorry, there is an unpublished album with unpublished pictures.
so, now, you can see only one thumb: http://test.vincentbourganel.fr/images/illustrations/

as told before:
I added mp3Default.png in images folder of basic theme (I used this png file https://www.pngrepo.com/svg/86227/mp3 renamed to mp3Default.png)

but there is a dark picture for this mp3 file.




how to use video thumbnail - fretzl - 2019-01-16

Not sure what's wrong with this transparent png file. I could not change it to something better. The interweb is full of topics about black png's caused by a transparent background.
For now just flatten the image (remove the transparent background)




how to use video thumbnail - acrylian - 2019-01-16

Okay, you mean the transparency. I think this is a limitation of the GD library not handling this properly. But a quick search indicates it can actually, so probably our library needs an update or improvement.




how to use video thumbnail - acrylian - 2019-01-16

For your info: Alphatransparency with png(24) does not work with GD. GD generally is capable of doing it although older version had alphatransparency support disabled. It must be a bug somewhere because transparent watermarks do work.

It all works correctly with Imagick though.




how to use video thumbnail - acrylian - 2019-01-16

Alpha transparency with GD nd png(24) is fixed in the support build. However alpha transparent pngs on alpha transparent pngs does not work with GD but with Imagick. Haven't found anything to fix this, might be a limitation of GD.




how to use video thumbnail - vincent3569 - 2019-01-16

Fred, thanks for the info.
It works well like that and I can have a personnal placeholder for non image format: https://test.vincentbourganel.fr/images/illustrations/