PHP Exif Image Information Primer Tutorial

PHP Exif Image Information Primer Tutorial

PHP Exif Image Information Primer Tutorial

Our (Mac OS X laptop) local MAMP web server is an Apache/PHP/MySql web server. In this environment you can find out a lot with some PHP code as per …

<?php phpinfo(); ?>

… and if, in doing this, you find a reference to the “exif” Exchangeable Image Information functionality existing, you are a lucky candidate to introduce some image “interrogation” (but not this) logic to your PHP code.

We followed a lot of the advice of the very useful link (thanks) to create some PHP called …

… where we may (or maybe not) be waking you up (before we go go ‘Cause I’m not plannin’ on going solo yo (to be honest, like)) … it’s a slow news day … to the fact that images can show on a web page but may not be all you would understand them to be … shock, horror!

Yes, an image that is a GIF in all but name will often display fine even if it’s been given a name like MyNameIs.Jpeg man person.

If this outrage makes you …

  • a) fall on the floor laughing
  • b) cause a road rage incident
  • c) wake up in a cold sweat
  • d) wake up in a warmish to lukewarm sweat
  • e) tear the cat’s hair out (no animals were harmed in the making of this blog posting)

… then we’re here to tell you that you need to take a Bex and have a lie down.

In any case, there is a solution to this in PHP if the exif functionality is available to you, and this matter is of concern, and you can see us showing you how to test for that with the code above and this live run. Sometimes you’ll see Gimp using exif functionality when it becomes aware of the possibility your image could be rotated to advantage … we’ve had this happen and thanked Gimp with more than the usual toast and herbal tea offerings you’d be used to giving … we take it?!

Stop Press

As of 8/8/2016 (well, what do you know? … understood everywhere!?) we’re revisiting Exif and PHP to learn more and our tutorial picture now reflects the early days of the revisit and the new resultant PHP we wrote, that you could call read_exif_off_image.php, inspired, largely from //www.v-nessa.net/2010/08/02/using-php-to-extract-image-exif-data (thanks), and has this live run link, the output of which is pointed to by the red arrow in the tutorial picture.

If this was interesting you may be interested in this too.

This entry was posted in eLearning, GIMP, Tutorials and tagged , , , , , , , , , . Bookmark the permalink.

16 Responses to PHP Exif Image Information Primer Tutorial

  1. It is actually a great and useful piece of information. I am satisfied that you simply shared this useful info with us. Please stay us informed like this. Thank you for sharing.

  2. Sebastian says:

    CzeΕ›Δ‡, wyjΔ…tkowy artykuΕ‚. Pewien czas nie pisaΕ‚em tak ciekawego tekstu

  3. I am glad for writing to make you be aware of of the wonderful encounter my wife’s princess enjoyed reading the blog. She picked up a lot of issues, which include what it is like to possess an amazing teaching nature to have many others quite simply grasp selected specialized things. You really did more than people’s desires. Thank you for presenting the informative, trustworthy, revealing not to mention cool tips on that topic to Gloria.

  4. I feel this is among the so much vital info for me. And i am glad reading your article. However wanna observation on few basic things, The site style is perfect, the articles is truly nice : D. Good task, cheers|

  5. It’s amazing for me to have a web site, which is valuable for my know-how. thanks admin|

  6. Great Β‘V I should certainly pronounce, impressed with your website. I had no trouble navigating through all the tabs as well as related info ended up being truly easy to do to access. I recently found what I hoped for before you know it at all. Reasonably unusual. Is likely to appreciate it for those who add forums or something, website theme . a tones way for your customer to communicate. Excellent task..

  7. I think this is among the most vital info for me. And i’m glad reading your article. But should remark on few general things, The website style is ideal, the articles is really excellent : D. Good job, cheers

  8. I think other web site proprietors should take this site as an model, very clean and excellent user genial style and design, as well as the content. You’re an expert in this topic!

  9. Useful information. Fortunate me I found your web site by chance, and I am surprised why this accident did not came about earlier! I bookmarked it.

  10. Hey there, You’ve done a fantastic job. I will definitely digg it and personally recommend to my friends. I am confident they’ll be benefited from this website.

  11. Notebook says:

    Great amazing things here. I am very satisfied to see your post. Thanks so much and i’m having a look forward to contact you. Will you kindly drop me a e-mail?

  12. picture says:

    I’ve been browsing online more than 3 hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as you did, the net will be much more useful than ever before.

  13. cmd368 says:

    You ought to take part in a contest for one of the finest blogs online. I am going to highly recommend this blog!

  14. rewarding says:

    My web searches seem complete.. thank you. of course, study is having to pay off. indeed, study is paying off. Truly appreciate the post you supplied..

  15. Victor says:

    Supporting the blog post.. gives thanks Genuinely beneficial mindset, thanks for expression.. My web searches seem complete.. thank you. Isn’t it amazing after you acquire a fantastic submit?

  16. Gambling says:

    Hiya very nice web site!! Man .. Excellent .. Amazing .. I will bookmark your website and take the feeds also? I’m glad to find a lot of helpful information here in the submit, we need work out more techniques in this regard, thank you for sharing. . . . . .|

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>