from png | jpeg to jpg

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
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

from png | jpeg to jpg

Post by ddragas »

Hi all

how to create from any file that was uploaded a file with jpg extension

if uploaded file has png or jpeg extension, save that file with jpg extension

if uploaded file has jpg extension, leave it as is
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

You might find imagecreatetruecolor usefull.
Post Reply