Results 1 to 4 of 4

Thread: Resized images turns black [SOLVED]

  1. #1
    New user
    Join Date
    08-14-09.
    Posts
    25

    Default 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

  2. #2
    User
    Join Date
    06-29-09.
    Posts
    271

    Default 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...

  3. #3
    New user
    Join Date
    08-14-09.
    Posts
    25

    Default 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

  4. #4
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default 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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •