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

ereg_replace in Wordpress
Heya - so I'm working on this site: http://world-of-smiles.theportlandco.com/new-patients

The

SQL Injection
In my attempts to protect my database from mySQL injection I have created another problem for myself

Php script to read msword file
hi,

I need to read a msword file and i want to print the contents in that word file.

i

Where do I put CRON code
So I've figured out alot about how to automatically run a php function. I can't figure out where to

How to grab certain words ??
I am working with this API

Returns JSON.
curl http://letsbetrends.com/api/current_trends

help with variable
I've got a problem, i want to echo some images depending on the $id, however for me to get that id i

parse error
Parse error: syntax error, unexpected '[', expecting ')' in /Users/admin/Sites/phptest/array.php on

Optimize Code
Just started getting into the use of cookies. The following code will redirect users to a set URL s

Problem assigning value to variable in "IF" function
Does this script makes sense? I am trying to take the value that is set to "authenticat" a

MySql timezone
Code: $sql = "SELECT *, date_format(date, '%m/%d/%Y at %I:%i %p' )as date FROM comments WHERE t

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