tif, psd, etc. converted to jpg or png with php?

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
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

tif, psd, etc. converted to jpg or png with php?

Post by Luke »

Is php capable of taking a tiff or psd (or other file format which is not able to be displayed on the internet) and convert it to jpg or gif or png or something so that it can be previewed on the web? If so, how is it done?
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post by MrPotatoes »

i wouldn't doubt tiff but PSD's are binary files with multiple layers and histories that come with them. you'd actually have to hex the code in order to do it. and then to do it on runtime it would kill your bandwidth.

but if it's to show your coding skillzorz then do it. i wanna see it.

now, that's just what i think. i'm not completely sure ttytt :D
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

I don't think GD can, but ImageMagick probably can.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Yes ImageMagick can.
(#10850)
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

sounds interesting... thanks I will look into it.
Post Reply