NextGEN Gallery
Bug Report (Wrong determination of file extension) (2 posts)

  1. Borys
    Posted 4 years ago #

    NextGEN Gallery Version 1.6.2
    As i see, this problem is occurring in 1.7.3 version also.
    There is problem with determination of file extension.

    For example - you have PNG image, but it is renamed to JPG extension.

    Go to "Add Gallery / Images":

    If you trying to upload this image, you will get warnings (shown below), and in result image will be wrong uploaded, and you will be not able to edit its thumbnail.

    Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/webuser/vhosts/vh121/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 198
    Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/webuser/vhosts/vh121/wp-content/gallery/burton-us-open/curr_cond_bg.jpg' is not a valid JPEG file in /home/webuser/vhosts/vh121/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 198
    curr_cond_bg.jpg (Error : Create Image failed. Check memory limit)

    File: lib/gd.thumbnail.inc.php
    Line: 145
    Replace the following code:
    to code:

    Or you can download patch here:

  2. Alex Rabe
    Posted 4 years ago #

    Thanks, please add the patch to : http://code.google.com/p/nextgen-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic