CHANGE PHP TO JPG FORMAT

Asked by rhodney shane weathers on 2011-01-09

I have most of my photo's that formated such as rodanns.php now when i go to upload to an existing website it immediately says it must be in jpeg or jpg file. I am asking how do I change tis php to a jpg. I would like to understand what exactly what php is and its terminology and as well the same goes for a jpeg. Why is it I can't find any tool to do so because i can not download a photo(ex. rodann.php) to most any websites for uploading to a profile.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gimp Edit question
Assignee:
No assignee Edit question
Last query:
2011-01-09
Last reply:
2011-01-16
mycae (mycae) said : #1

PhP is a programming language, not an image file format.

Do you mean "png"? You may have given your files the label ".php" instead of ".png" -- how did you create them?

PNG stands for Portable Network Graphics and JPEG stands for Joint Photographic Expert Group.

PNG is a so-called "lossless" compression format, and JPEG is a "lossy" compression format. PNG images will always decode the exact same way that they were encoded -- no data is lost. JPEG images allow a little bit of data to be lost to gain better compression in real-world images.

Wikipedia has some good articles:
https://secure.wikimedia.org/wikipedia/en/wiki/PNG_file
https://secure.wikimedia.org/wikipedia/en/wiki/JPEG

And the unrelated Php:
https://secure.wikimedia.org/wikipedia/en/wiki/PHP

marcus aurelius (adbiz) said : #2

@mycae
it's true that php isn't an image format. however, lots of sites that use php will give the extension of .php to the image file

@rhodney
i used a program call irfanview to convert the files. you might be able to use gimp to do the same. anyhoo, if worse comes to worse, you can always manually rename the php extension to jpg

The GIMP is able to convert between most formats, especially those common on the web, and should be able to recognize the format of an image file even if the extension is wrong.

If you need to find out information about an image file (or any file)'s format, you can open up a Terminal window (Applications > Accessories > Terminal), type "file " (without the quotes, but with the trailing space), drag the file into the terminal (to copy its absolute path), and press enter. For more details on the file command run the command "man 1 file" in the Terminal, or press Alt+F2 and run the command "yelp man:file(1)".

Can you help with this problem?

Provide an answer of your own, or ask rhodney shane weathers for more information if necessary.

To post a message you must log in.