png problem

This is the place to chat about anything that's related to the free blog-hosting-service called supersized.
Locked
kender
Posts: 1
Joined: Sat May 06, 2006 9:28 pm

png problem

Post by kender » Sat May 06, 2006 9:30 pm

hi, when i try to upload a "png" to the media library i get

Code: Select all

Fatal error: imagepng() [<a href='function.imagepng'>function.imagepng</a>]: gd-png: fatal libpng error: zlib error in /usr/local/lib/php/s9y-supersized/include/functions_images.inc.php on line 1060

error

what's the problem?

User avatar
jhermanns
Site Admin
Posts: 378
Joined: Tue Apr 01, 2003 11:28 pm
Location: Berlin, Germany
Contact:

Post by jhermanns » Sun May 07, 2006 1:34 am

hey,

thanks for reporting this issue. it seems to be a problem when calling php 5.1.x's imagepng function, which uses the compression level as third argument (0-9). in line 1060 you find

Code: Select all

$func['save']($out, $outfilename,100);


which should be

Code: Select all

$func['save']($out, $outfilename, 9);


fixed for supersized, garvin, what do you say (svn?)?

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Sun May 07, 2006 12:54 pm

Jannis,

this has been fixed a while ago already :)

Regards,
garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
jhermanns
Site Admin
Posts: 378
Joined: Tue Apr 01, 2003 11:28 pm
Location: Berlin, Germany
Contact:

Post by jhermanns » Sun May 07, 2006 12:59 pm

i was told not to update supersized.org to the latest dev build though :)

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Sun May 07, 2006 1:01 pm

Hi!

That'S right, in 1.1alpha versions where this has been fixed, also many new MDB changes were committed.

They're ready for showtime/testtime now, though. So if you want, you can update. But it's related to many DB updates. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Locked