WEBP In SP Easy Image Gallery - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

WEBP In SP Easy Image Gallery

KL

Klaus Liedtke

Extension 1 year ago

Still no webp images in SP Easy Image Gallery ? But that is the most popular image format of today.

0
10 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 1 year ago #150982

Hi

Thanks for contacting us. SP Easy Image gallery is not WebP compatible yet, Please follow these links below. It may help you.

https://www.joomshaper.com/blog/how-to-use-webp-images-in-joomla

https://www.joomshaper.com/forum/question/22255

-Regards.

0
KL
Klaus Liedtke
Accepted Answer
1 year ago #151416

How this articles can help me?

You support webp in Page Builder Pages. Why not in SP Image Gallery? This means the product is unusable. That makes no sense.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #151425

Hi Klaus,

It was added to wish-list a week ago.

0
KL
Klaus Liedtke
Accepted Answer
1 year ago #151426

Hi Paul,

Thanks for the info.

0
KL
Klaus Liedtke
Accepted Answer
1 year ago #151719

Hi Paul,

I installed the last version of PB 5.2.8

Now i can't open pages. Error:

Unhandled Runtime Error

TypeError: i[e] is undefined

Please open the browser console for more information! Call Stack l

(2:1252879) 2477

(2:17591) l

(2:1252884)

What must i do?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #151721

Hi Klaus,

Use this most popular method:

Clear browser cached files.
Check Admin & SPPB using **Incognito Mode** (each browser has it).
You can use also 2nd browser and deep refresh.
Then as last step - Clear Joomla cache.
Sometimes you have to wait (5-10-15min) becuase server file cache. 

    If this will not help let me know, but I hope it will.
0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #151773

We published Version 5.2.9 - please download and use it.

0
KL
Klaus Liedtke
Accepted Answer
1 year ago #151887

Hi Paul,

I got a error message when save a image in SP Simple Portfolio and SP Easy Image Gallery:

imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, null given

The image-typ is webp.

Is that the reason?

Greetings

Klaus

0
marvays
marvays
Accepted Answer
4 months ago #193866

I ran into the same issue when trying to change the album cover image in SP Easy Image Gallery on Joomla 5:

imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, string given

Here's how I fixed it:

Enabled WebP support in Joomla:

Go to: System > Global Configuration > Media

Add "webp" to the list of allowed file extensions:

webp

And also add the MIME type:

image/webp

Modified the gallery helper file:

Path: /administrator/components/com_speasyimagegallery/helpers/speasyimagegallery.php

In the createThumbs() function, I added WebP support.

For loading WebP images, I added: case 'webp': $img = imagecreatefromwebp($src); break;

For saving thumbnails as WebP: case 'webp': imagewebp($new, $dest); break;

Verified that PHP has GD with WebP support (you can check this using phpinfo()).

After this fix, everything works fine — for JPG, PNG, and WebP.

You can see it live on my site: https://glomontu.cz

Hope this helps others too.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 4 months ago #193987

Hi marvays,

Glad to know that you have fixed the issue and thanks for sharing the solution. It helps other users too.

-Thanks.

0