Speasyimagegallery :imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, string given - Forum | JoomShaper
Staff replied General

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

Asked by MARIE OLCHANSKI 5 months ago Last activity 5 months ago

Hello
How can I fixed this error ?
imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, string given
Call Stack

Function Location

1 () JROOT/administrator/components/com_speasyimagegallery/helpers/speasyimagegallery.php:161
2 imagecopyresampled() JROOT/administrator/components/com_speasyimagegallery/helpers/speasyimagegallery.php:161
3 SpeasyimagegalleryHelper::createThumbs() JROOT/administrator/components/com_speasyimagegallery/controllers/album.php:74
4 SpeasyimagegalleryControllerAlbum->postSaveHook() JROOT/libraries/src/MVC/Controller/FormController.php:786
5 Joomla\CMS\MVC\Controller\FormController->save() JROOT/libraries/src/MVC/Controller/BaseController.php:730
6 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_speasyimagegallery/speasyimagegallery.php:26
7 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
Thinks a lot
Marie

13 replies

Ofi Khan Staff

Hello MARIE OLCHANSKI,

Thank you for reaching out to our technical support forum. I’m sorry to hear about the trouble you’re experiencing. Rest assured, I will look into this issue for you and work to resolve it as quickly as possible.

Where do you see this error? Please share me the error page link. I will check it.

Best regards

MARIE OLCHANSKI Asked this

SP Easy Image Gallery:

Edit Album

2026-flamenco

Save

Ofi Khan Staff

The problem seems to be on the featured image. Selecting a different image does not produce the issue. Please re-upload the feature image on the site. Then check the issue again.

MARIE OLCHANSKI Asked this

I try again for the feature image, with the same, and another, and it is still not working...

MARIE OLCHANSKI Asked this

Hi Oli
I find the reaso of that strange error.
Easy Image Gallery accept images in JPG, but not for the feature image !!!
Can you change that somewhere ???
Have a nice day
Marie

Ofi Khan Staff

Please go to this location:

administrator/components/com_speasyimagegallery/helpers/

and replace speasyimagegallery.php file with the attached file. You need to unzip the file and then replace

speasyimagegallery.php.zip

Hopefully, it will fix the issue.

MARIE OLCHANSKI Asked this

Yes ! You got it !
A lot of thanks!
Marie

MARIE OLCHANSKI Asked this

A last setting is need...
The feature image does not appear on the SP Easy Image Gallery: Albums like you can see on the site
Thanks again for all your quick answers
Marie

Ofi Khan Staff

You are welcome 😊

I have added a menu item. Please check the link in the hidden content. It shows the feature image correctly.

MARIE OLCHANSKI Asked this

Hello Ofi
Can you also go and see for the featured image not visible on the page "Components/Sp Easy Image Gallery / Albums" ?
Have a nice day
Marie

Log in to reply.