Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1129

Allow resizing broken JPEG images

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.2.1-B1
    • Component/s: Front End
    • Labels:
      None

      Description

      In most cases images are sized properly, but image I've attached didn't resize and is producing following errors in debugger:

      Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Corrupt JPEG data: 359094 extraneous bytes before marker 0xd9 in w:\in-portal\core\units\helpers\image_helper.php on line 188
      Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '.../system/images/Buddy on the porch.jpeg' is not a valid JPEG file in w:\in-portal\core\units\helpers\image_helper.php on line 188

      At first I though image is broken, but it'd GD & libjpeg thinks what way. I can open that image on my PC using any program, even Photoshop.

      Line, where error is happening says:
      $src_image_rs = imagecreatefromjpeg($src_image);

      I thought that I need to update JPEG library, but I already have latest version 6b from 1998 year.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: