[solved] GD-Library / png

Discussion in 'Install/Configuration' started by urs, May 18, 2011.

  1. urs

    urs New Member

    My GD is working as it should, only with png pictures there is a problem. No png pictures will be reseized. JPEG works as it should. I have absolutly no idea where to search the error.....
    Last edited by a moderator: May 18, 2011
  2. NiteWave

    NiteWave Administrator

    add --with-png-dir=/usr, re-compile lsphp
  3. urs

    urs New Member

    already done, no success
  4. NiteWave

    NiteWave Administrator

    when resize png, what error message in error.log/stderr.log?
  5. urs

    urs New Member

    I see no error at all.....

    Strange, i installed a new version of libpng and php, recompiled, in the phpinfo.php i see the new version of php, but pnglib is the old version number.... the path of the libpng is correct,
    Last edited: May 18, 2011
  6. urs

    urs New Member

    now, i have an error...

    2011-05-18 09:38:01.844 [STDERR] libpng warning: Application built with libpng-1.2.41 but running with 1.5.2
  7. urs

    urs New Member

    I corrected the error and now i receive:

    2011-05-18 09:46:09.747 [NOTICE] [192.168.0.55:50231-0#aqula] [STDERR] PHP Notice: Undefined index: category_ids in /Volumes/sites/aqula/html/administrator/components/com_virtuemart/classes/ps_product.php on line 98
    2011-05-18 09:46:09.749 [NOTICE] [192.168.0.55:50231-0#aqula] [STDERR] PHP Warning: imagecreatefrompng(): gd-png error: cannot allocate libpng main struct in /Volumes/sites/aqula/html/administrator/components/com_virtuemart/classes/class.img2thumb.php on line 154
    2011-05-18 09:46:09.749 [NOTICE] [192.168.0.55:50231-0#aqula] [STDERR] PHP Warning: imagecreatefrompng(): '/Volumes/sites/aqula/html/components/com_virtuemart/shop_image/product/tmpForThumb_phpRB6Mmy' is not a valid PNG file in /Volumes/sites/aqula/html/administrator/components/com_virtuemart/classes/class.img2thumb.php on line 154
    2011-05-18 09:46:09.749 [NOTICE] [192.168.0.55:50231-0#aqula] [STDERR] PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /Volumes/sites/aqula/html/administrator/components/com_virtuemart/classes/class.img2thumb.php on line 258
    2011-05-18 09:46:09.749 [NOTICE] [192.168.0.55:50231-0#aqula] [STDERR] PHP Warning: imagepng(): gd-png error: cannot allocate libpng main struct in /Volumes/sites/aqula/html/administrator/components/com_virtuemart/classes/class.img2thumb.php on line 304
    2011-05-18 09:46:09.749 [NOTICE] [192.168.0.55:50231-0#aqula] [STDERR] PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /Volumes/sites/aqula/html/administrator/components/com_virtuemart/classes/class.img2thumb.php on line 170
    2011-05-18 09:46:09.861 [NOTICE] [192.168.0.55:50231-0#aqula] [STDERR] PHP Notice: getimagesize(): Read error! in /Volumes/sites/aqula/html/administrator/components/com_virtuemart/classes/ps_product.php on line 1439


    Is there a possibility to test the pnglib on the unix side?
  8. NiteWave

    NiteWave Administrator

  9. urs

    urs New Member

    i can't find a devel distribution that works in mac os x....
  10. NiteWave

    NiteWave Administrator

    then you may have to build a devel png from source code ...
    I have no experience on mac os x
  11. urs

    urs New Member

    Solved! Thanks for the support

Share This Page