Page 1 of 1

Coverting image formats to png

Posted: Wed Oct 28, 2009 7:27 pm
by DrPL
Hi,
Sorry for the terse form of this message, I am trying to code while coping with a bereavment. Life goes on, "they" say; well maybe life sucks.

To ask my php question - is there a simple way to convert jpeg and gif files imported using
a form, to png format? All the forums I've frequented says that its a matter of loading the
relevant file and then displaying it using imagepng(...), but I don't want to display it straight away, I want to perform some further manipulation on the converted png before I display it.

Hopefully this makes sense to someone

Yours

Paul

Re: Coverting image formats to png

Posted: Wed Oct 28, 2009 8:02 pm
by requinix
imagepng can save to a file too. Don't have to output the image immediately.

Re: Coverting image formats to png

Posted: Thu Oct 29, 2009 5:52 am
by DrPL
Thanks, I'd forgotten that. Is there any way to hold an image in memory rather than having to output to a file, and then reload it?

Re: Coverting image formats to png

Posted: Thu Oct 29, 2009 1:16 pm
by requinix
Reload... what?