Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Images in [color=#PNG format

General discussions related to php

Moderators: macek, egami, gesf

Images in [color=#PNG format

Postby Alex » Fri Mar 07, 2003 5:58 pm

:D Hey Everyone!
      I am a newbie in php, and i am trying to create images, but since PHP's contract with GIF is expiring this June, the manuals persuade all people to use the PNG format for the pictures. The problem is, that i cant make PHP to understand/save in/read the format. This is what i tried to do to turn it on: I went to php.ini and turned on "extenson=php_gd.dll", restarted the Apache services and tried running the folowing script:
:?: header("Content-type: image/png"); :?:
    $im = @ImageCreate(320, 200)...........
Compiler gave me an error on line 1, i tried everything i could, but it didnt work, PLEASE HELP!

Thank you in advance!
New php-forum User
New php-forum User
Posts: 180
Joined: Fri Mar 07, 2003 4:59 pm

Postby Redcircle » Sat Mar 08, 2003 11:07 am

I would look into Imagemagick. It is much more powerful than gd. Also handles many more imagetypes. check it out
User avatar
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Re: Images in [color=#PNG format

Postby WiZARD » Sun Mar 09, 2003 12:38 am

code please
User avatar
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Return to PHP General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.