transforming a JPEG imarge onto a PNG or GIF image

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bermei
Forum Newbie
Posts: 1
Joined: Mon Oct 27, 2003 6:11 am

transforming a JPEG imarge onto a PNG or GIF image

Post by bermei »

Hi all!

I am desperate doing a function which transforms a JPG image onto a GIF or PNG. I capture the image in a ImageCreateFromJpeg from an url, but I cannot save it in a GIF or PNG format (It gives me an error message). I have the GD library already installed.

I have done it in VBasic, but I would like to do it using PHP.

Do you know any way to do it?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

maybe if you show us the code...
which version of gd do you use

Code: Select all

<?php phpinfo(); ?>
will tell you
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

you might not have gif abilities (damn royalties)
Post Reply