Page 1 of 1

Thumbnails generation issue

Posted: 24 Aug 2022, 10:09
by hyc
Hi,

I am experiencing exactly the same issue as in this thread : viewtopic.php?f=52&t=10312&p=47793&hili ... ils#p47793
I don't have several servers/instances/websites using it, only one.

however, my file name is "DANSE.jpg"... and contains no special characters.

I have a particular setup in regards to PHP, and I wonder if it could be due to some missing extensions ?
However, if I go to ?diagnostics, GD extension is correctly detected.
Mysqli and Exif are off, but I don't think it will lead to such issue.

Therefore I wonder what could be the cause...

If I look at "inspect element" on the faulty thumbnail, Console gives me error 500, and opening in new tab (the thumbnail, not the link to the big image, i.e. https://mywebsite/render/w100-c1.1/peinture/DANSE.jpg) gives me an error :

"Error
Failed to call imagecreatefromjpeg()
<?php array (

...
"
and then I have some PHP code...


Could you let me know what other details you need to assist me please ?

Thanks !

Re: Thumbnails generation issue

Posted: 24 Aug 2022, 10:39
by mjau-mjau
Do you have a link though? I don't understand the issue.
hyc wrote:I am experiencing exactly the same issue as in this thread : viewtopic.php?f=52&t=10312&p=47793&hili ... ils#p47793
I don't have several servers/instances/websites using it, only one.

however, my file name is "DANSE.jpg"... and contains no special characters.
Then it can't be the same issue, because that issue was specifically about certain characters interfering with the URL that calls resized images.
hyc wrote:I have a particular setup in regards to PHP, and I wonder if it could be due to some missing extensions ?
However, if I go to ?diagnostics, GD extension is correctly detected.
Mysqli and Exif are off, but I don't think it will lead to such issue.
It sounds like something with GD, but it would not be related to mysqli or exif, which are not strictly required, and not used for resizing images anyway.
hyc wrote:Failed to call imagecreatefromjpeg()
From my understanding, this seems like an issue with your GD ... Most likely the underlying libraries that GD uses for various image operations. GD is definitely installed, else you would get "Call To Undefined Function Imagecreatefromjpeg()".

I am guessing this is your own server, and I am guessing that you have not installed GD correctly for some reason. I don't know PHP version, but sometimes it helps to just update PHP version, as it might use differently compiled extensions. I can't offer anything else without access to test on the server.

Basically imagecreatefromjpeg() function does not work. You can test it yourself using one of the examples in the documentation link below. You would need to try to re-install GD, but I can't offer much help on this topic.
https://www.php.net/manual/en/function. ... omjpeg.php

Re: Thumbnails generation issue

Posted: 24 Aug 2022, 11:09
by hyc
The issue is the same in the behavior (not the cause/reason) sorry for not giving more precisions.

I will check out GD installation again, but I use PHP 7.1, is it enough ? 

I will check out GD and revert, thanks for the info.

Re: Thumbnails generation issue

Posted: 24 Aug 2022, 16:28
by hyc
I reinstalled GD extension differently and all working fine now.
Sorry for the false alarm

Re: Thumbnails generation issue

Posted: 24 Aug 2022, 23:11
by mjau-mjau
hyc wrote: I reinstalled GD extension differently and all working fine now.
Great!