Resized images turns black [SOLVED]
Hi everybody
I have a very strange problem with one of my TYPOlight sites. Whenever an image is scaled it turns black. Take a look at the site: http://holmgaardbak.dk
Under "Galleri" you can see that all thumbs are black. This started happening out of nowhere...
Could it be a problem with the GD engine?
All my other TYPOlight installation runs on another server and I have newer had any problems with them. So I think this is related to the server.
Any idea to solve this?
Stefan
Re: Resized images turns black
Just wanted to say that I tried your images, and they are not the problem. So I'd try and see if your host changed anything in their setup lately...
Re: Resized images turns black [SOLVED]
Hi Vera
Thank you for taking the time to help here. I have now solved the problem by updating to the latest version of TL.
Still can't figure out why that solved the problem?
Stefan
Re: Resized images turns black [SOLVED]
I found this thread on Google, so for future reference: I've found that updating TYPOlight (to 2.7.2) solves the problem. But for people who for whatever reason can't or do not have the time to do, there is an easy fix.
/system/libraries/Controller.php needs to be changed.
Find the line below (line 760)
Code:
if ($arrGdinfo['JPG Support'])
and change into
Code:
if ($arrGdinfo['JPG Support'] || $arrGdinfo['JPEG Support'])
The GD JPEG support variable changed name, so with this change both new and old name is supported.
Also see: https://github.com/contao/core/issues/783
In case any other PHP 5.3 compatibility problems arise:
https://github.com/contao/core/issues/785
https://github.com/contao/core/issues/786