#1006 Posted in ‘Showtime Image Gallery’

Latest post by Lefteris Kavadas on Friday, 03 March 2023 11:40 EET

Yannick Lämmel
Dear Support,

when I upload images that are 4000 pixels wide or 1900 pixels high I get the error message XHR returned response code 500.
If the images are smaller in both dimensions the upload works as expected. I use the Joomla custom field plugin.

I found out that there where more people who hat the same problem. Were you able to find out what is was?
I really would appreciate if bigger dimensions would be possible because then we don't have to explain to our clients how to crop the images before uploading. This would be really cool because your component already crops it, if they are bigger than 2000x2000 px.

If you need any further information, feel free to contact me.
Thanks in advance

Tanja Vogt
Webman Webdesign

Lefteris Kavadas
Hi Tanja,

This sounds like memory limit of your web server. Can you please share PHP's memory limit value of your server? It can be found under "System" -> "System Information" . Just look under the tab named "PHP Information" and search for "memory_limit".
Most of the times you need to increase that value to handle really large images. You can ask your hosting provider to increase this for you.

Regards

Yannick Lämmel
Hi Lefteris,

the memory limit is 48M, so this should not be the problem. It is really depending on the pixels.
If I try to upload a picture with 4000px width it fails, if I reduced the width to 3900px it works. The filesize hasn't changed so much in this case.
With the hight it is even more confusing. If the picture is 1900px height is fails, if it is 1800px height it works.
Really makes no sense to me at all.

Do you have another idea?

Kind regards
Tanja

Lefteris Kavadas
Hi Tanja,

It should be the memory limit. Image processing in PHP is memory intensive. Remember, this is not a desktop computer running Photoshop, it's a web server and it's not optimized for image processing.
Other values that may affect this, are PHP's upload_max_filesize and post_max_size. But those have to do with the file size.

So, just set the memory_limit value to something like 96M or 128M and let me know if that solves the issue.

Regards

Yannick Lämmel
Hi Lefteris,

I changed the memory limit to 256M and now it takes some time, but it works.
Thank you very much for your help.

Kind regards,
Tanja

Lefteris Kavadas
You are welcome.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review