Images in [color=#PNG format

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
Alex
New php-forum User
New php-forum User
Posts: 180
Joined: Fri Mar 07, 2003 4:59 pm
Contact:

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:
<?php
:?: 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!

User avatar
Redcircle
Moderator
Moderator
Posts: 826
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

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 http://www.imagemagick.org.

User avatar
WiZARD
Moderator
Moderator
Posts: 1240
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Sun Mar 09, 2003 12:38 am

code please
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";
Image

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests