The simpler media website CMS
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:
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
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.
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?
Yes, place images with the same names as the originals (within
class-video
) within animages
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.do you mean to have images called
mp4Default.png
,mp3Default.png
,textDefault.png
... in theimages
folder of my theme?of course have real images is better, but my idea is to have correct placeholder for my theme.
Yes, those.
it doesn't work.
tested with basic theme and a
mp3Default.png
added inimages
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.
I see the mp3 image here:
https://test.vincentbourganel.fr/images/illustrations/
I see it as well.
that is not the right image (I remove it).
see here, the only mp3 file: https://test.vincentbourganel.fr/images/illustrations/page/2/
I don't understand then. And the link is leading to "object not found".
Zenphoto Error: the requested object was not found. ??
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.
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)
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.
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.
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.
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/