Jump to content

libPNG or not in phpinfo()


Acoon

Recommended Posts

So, I got a weird problem with my .png images in GD.

Some look all screwed up and wrong sizes etc. But only the ones that is transparent. Regular png images with no blending works fine. I have this problem on my server.

 

However, on my workstation i have easyPHP with PHP, apache, mysql etc for developing. There it works. They both has png support as shown in phpinfo():

PNG Support 	enabled 

 

And they are both GD version 2.0.34 compatible. The only real difference i can see is that on my workstation i have an extra line in GD in phpinfo().

 

libPNG Version 	1.2.44 

 

So my question is, what does this mean in regards to functionality?

 

 

Br,

Acoon

Link to comment
https://forums.phpfreaks.com/topic/244781-libpng-or-not-in-phpinfo/
Share on other sites

You probably don't have libPNG installed on your server. GD should support PNG out of the box, but the support is pretty meh from what I've read. libPNG is probably the solution.

Thanks for your reply.

 

It seems libpng is already installed on the server. Any idea on how to 'enable' it in php?

[root@vps1 ~]# yum install libpng.x86_64
Package 2:libpng-1.2.10-7.1.el5_5.3.x86_64 already installed and latest version
Nothing to do

 

 

Br,

Acoon

Check your Configure Command in PHP info.

 

Also check print_r( gd_info() );

 

Same on both computers...

 

Array
(
    [GD Version] => bundled (2.0.34 compatible)
    [FreeType Support] => 1
    [FreeType Linkage] => with freetype
    [T1Lib Support] => 
    [GIF Read Support] => 1
    [GIF Create Support] => 1
    [JPEG Support] => 1
    [PNG Support] => 1
    [WBMP Support] => 1
    [XPM Support] => 
    [XBM Support] => 1
    [JIS-mapped Japanese Font Support] => 
)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.