Change image filetype on upload?


Posted on 16th Feb 2014 07:03 pm by admin

Hi,
I've got a form which uploads an image to the server.
Is it possible to change the image type during the upload?

Did you know?Explore Trending and Topic pages for more stories like this.
I want the user to be able to upload images that are .gif .jpg or .png, but when uploaded, if they are .gif or .jpg, have been changed to .png.

Is this possible?
No comments posted yet

Your Answer:

Login to answer
282 Like 38 Dislike
Previous forums Next forums
Other forums

Transform value 0 in no and 1 in yes help needed
Hello,
I have this in the table: "value" type int 0 to represent false and 1 to represe

help with image upload code
Hello,

right now this code I have resizes images and then places them into the uploads folder

Echoing ASCII code
I have a php page that splits a string into chars and then echoes the ASCII code for each char. I'm

extract data
Code: <div class="post hentry uncustomized-post-template">

Querying info from one table based on info in another
Hi, I am currently trying to make a part for my user driven website where one user can subscribe to

Gaining access to Drop Down Menu Variable
code is below, I am creating a drop down menu. I want to echo the value selected in the drop down me

remove innitial

and

tags
i am using tiny_mce as a text editor for my CMS.
buy now the problem is it add <p>

array_diff weirdness
I'm using the following bit of code

$diff = array_diff($pids, $pidlist);
$diff = array_va

How to limit the calls to an API
Hello, in my simple script I call an api which effectively involves me getting an xml file.

H

Include ("Absolute Path") of a file?
I'm not sure what I'm doing wrong. I am writing my php code in the same directory of the file that

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash