how to use video thumbnail

vincent3569 Member, Translator
edited January 2019 in General support

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

Comments

  • acrylian Administrator, Developer

    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.

  • vincent3569 Member, Translator

    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?

  • acrylian Administrator, Developer

    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.

  • vincent3569 Member, Translator
    edited January 2019

    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.

  • acrylian Administrator, Developer

    Yes, those.

  • vincent3569 Member, Translator

    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.

  • fretzl Administrator, Developer
    edited January 2019
  • acrylian Administrator, Developer

    I see it as well.

  • vincent3569 Member, Translator

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

  • acrylian Administrator, Developer

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

  • fretzl Administrator, Developer

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

  • vincent3569 Member, Translator
    edited January 2019

    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.

  • fretzl Administrator, Developer

    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)

  • acrylian Administrator, Developer

    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.

  • acrylian Administrator, Developer
    edited January 2019

    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.

  • acrylian Administrator, Developer

    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.

  • vincent3569 Member, Translator
    edited January 2019

    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/

Sign In or Register to comment.