Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by Superman710e

  1. Superman710e

    Product listing

    So I hacked together a possible solution. In /<catalog>/includes/modules/kiss_image_thumbnailer/classes/Image.php I added one line: case self::IMAGETYPE_PNG : $quality = is_null ( $quality ) ? 0 : $quality; $quality = ($quality > 9) ? $quality=floor($quality / 10) : $quality; $filters = is_null ( $filters ) ? null : $filters; return imagepng ( $this->_image, $save_in, $quality, $filters ); break; The text below in bold and red was injected at line 145. $quality = ($quality > 9) ? $quality=floor($quality / 10) : $quality; In a very simple test it seems to be working. But you will have to first delete any previously created png images from /<catalog>/includes/modules/kiss_image_thumbnailer/thumbs. Thanks, Jason
  2. Superman710e

    Product listing

    I think it might be related to the quality value being passed to the imagepng function. I tested by uploading a jpeg instead, and that works fine. http://www.at-byte.com/technology/gd-png-fatal-libpng-error-zlib-error However, looking at the code (and not being proficient at PHP) I am unable to find a location where the value is limited for png, and I am not sure how to add such a feature. Thanks, Jason
  3. Superman710e

    Product listing

    I imagine this is a great addon, but we're having some issues with it. Wonder if anyone can help? Basically the new image is corrupted and never actually shows. Looking in the web server logs reveals this error: gd-png: fatal libpng error: zlib failed to initialize compressor -- stream error gd-png error: setjmp returns error condition And these errors too: (I think this has to do with the corrupt image being created: [sat Nov 24 00:57:00 2012] [error] [client <ip_address>] client denied by server configuration: /path/to/osc/images/index.php, referer: http://<url>/osc/index.php?cPath=23_25_26_27 Also if I do "view image" I get this image: http://dl.dropbox.com/u/73185298/KissIT_image_thumbnailer_error.png If I copy the created image locally it says it's a corrupt image and cannot be opened and it's only 1KB in size. I'm searching around for answers but nothing concrete yet. I did find some possible answers but they are not in English and the translations seem unclear. Any help would be appreciated! Thanks, Jason Info: Debian 6.0.5 Apache 2.2.16 PHP 5.3.3 osC 2.3.3 Addon from here: http://addons.oscommerce.com/info/8495