Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

jpeg exif

Posted on 2015-02-17
4
72 Views
Last Modified: 2015-02-17
I am looking for a known good php class that will allow me to read and write the image exif header data on a jpeg image. I downloaded a few but none works yet...
0
Comment
Question by:Robert Saylor
  • 2
  • 2
4 Comments
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 40614373
PHP has built-in extensions for this.  If you haven't tried them I would start there first.
http://php.net/manual/en/book.exif.php

You might also want to try using JavaScript.
https://github.com/jseidelin/exif-js

The problem you're likely to encounter is that Exif is not really a very well supported standard and has all kinds of variable data in strange formats.  If you know exactly what camera and firmware you're dealing with, you may be able to tailor a solution, but if you don't control that, you may find the Exif data to be highly variable or missing.  To see how "well supported" Exif is today, just visit http://exif.org/

If you decide to do this yourself, start your research here (and be patient with the testing process, planning for soft failures and good default values).
http://en.wikipedia.org/wiki/Exchangeable_image_file_format
0
 
LVL 7

Author Comment

by:Robert Saylor
ID: 40614403
Thanks Ray. I was afraid of that. I will keep this open a little longer incase anybody else wants to chime in.
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 40614936
If it's any consolation, we're dealing with the same issue at my office - a variety of image sources including phones, cameras, and online libraries.  Fortunately we have found that most of our client base doesn't really care too much about the Exif details, as long as they can capture or supply a name, photographer and description for each image.

In any case, thanks for the points and best of luck with the project! ~Ray
0
 
LVL 7

Author Comment

by:Robert Saylor
ID: 40614959
Thanks, you might have saved me from 10 hours of work with nothing to show. I agree I can read the data all day long but writing it back to the image is a different story.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question