e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

Gallery Plugin Display Issue #5051

Open LaocheXe opened 11 months ago

LaocheXe commented 11 months ago

Bug Description

Gallery Plugin can't display .webp format.

Screenshot 2023-07-30 165235

Screenshot 2023-07-30 165118

However, in the admin area (media manager, and gallery), it can display the format just fine.

When clicking on an .webp image in the Gallery section, I get a 'Image cannot be loaded. Make sure the path is correct and image exist.'

Copying the image link, gives me https://mosleys.defiantz.org/media/img/c3JjPWVfTUVESUElMkZwbHVnaW5zJTJGZGVhbGVyc2hpcCUyRjM0ZjAzOF9TY3JlZW5zaG90XzEud2VicCZhbXA7dz0xMDI0JmFtcDtoPTc2OA==.ebp

In the admin area, copying the image link which displays correctly: https://mosleys.defiantz.org/e107_media/b0d4b5f58d/plugins/dealership/34f038_Screenshot_1.webp

CaMer0n commented 10 months ago

Thanks @LaocheXe ! I tested with Bootstrap5 and Bootstrap3 themes, and was unable to reproduce the issue you're having. I did notice that your image urls are ending in .ebp . Does that mean anything to you?

LaocheXe commented 10 months ago

That is the weird thing, it's a fresh install of e107, nothing odd installed plugin wise. The Gallery plugin isn't displaying the .webp images in the front end. While digging into it, only thing I can think of is the javascript Gallery uses. Does it not generate the links for the images? For a regular png image that is displayed correctly with the link https://nosleys.defiantz.org/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/sprite_y.png

So I'm thinking it's prettyPhoto issue maybe?

Jimmi08 commented 10 months ago

@CaMer0n converting jpg to webp on uploading and rendering should work on localhost too? Is needed any other settings except those prefs? Can be set on both? Because I am not able to test this.
Thanks

LaocheXe commented 10 months ago

@CaMer0n converting jpg to webp on uploading and rendering should work on localhost too? Is needed any other settings except those prefs? Can be set on both? Because I am not able to test this. Thanks

The image before upload was already a webp format.