For a couple of days we’ve been on the theme of “media is more than imagery”, it also involves “audio” and/or “video”. So that led us onto a bit of an exploration of Location Service geolocation or geotagging on an iPad when it comes to “video” taken with the Camera app in “Video” capture mode. This is because, it is plain to us with some videos you record on the iPad, those taken outside it seems, that Location Services deployed can help geotag the video, else how would you explain …
Well, speaking DIY (do it yourself) or DIwalhfyf (do it “with a little help from your friends”) we wanted to know if we could get some software going that would help here, given the knowledge that Exif techniques only work for Jpeg and Tiff imagery, and, as we saw below with Location Services iPad Camera Geolocation Png Metadata Tutorial, as shown below, ImageMagick can help out with Png imagery. Continuing to look below you may have read those thoughts about approaches …
- ImageMagick command line functionality via “identify” command
- Imagick class in PHP
- ExifTool third party solution in Perl
… and seen the excellent “ExifTool” Perl software product by Phil Harvey. Today we try it out on our MacBook Pro running Mac OS Sierra, and so we install via a “.dmg” installer.
This “ExifTool” third party software is so flexible, and being command line, once installed properly on a web server, could be used in a PHP exec command, for instance. “ExifTool” takes as its argument a media file that must reside on the same local file system the “ExifTool” software resides … no URLs here. It is incredibly flexible and “knowledgeable” in a part of the I.T. world where standards have not held great enough sway that all digital camera or phones present this metadata in any consistent approach … so “yay” to Phil Harvey for all the great, and probably very difficult work, here.
So we’ll leave you with a “ExifTool” download page link here, and hope you try it out for yourself, as we did.
Previous relevant Location Services iPad Camera Geolocation Png Metadata Tutorial is shown below.
Today’s “foot further into the water” progress building on Location Services iPad Camera Geolocation Jpeg Exif Tutorial, as shown below, has a posting title that includes the word “Geolocation”, but alas, we’ve found with PNG files coming off our iPad that Geolocation or Geotagging information is lost, unlike our recent iPad JPEG files, and so our preference for the latter has become stronger. We discuss this also at WordPress 4.1.1’s Location Services iPad Camera Geolocation Png Metadata Tutorial. However, there are other interesting pieces of information regarding an image that don’t involve the “where” of life, and so we find this topic interesting even so, and hope you do too.
As with so many issues in Information Technology, there are often many approaches to solving problems, and we took the first approach of just some of the possibilities for approaches to PNG metadata processing, listed below …
- ImageMagick command line functionality via “identify” command
- Imagick class in PHP
- ExifTool third party solution in Perl
… and so, once again, we find useful work for the wonderful ImageMagick software product for our purposes. As we say, our foot is just further in the water, and there is more analysis and testing we feel necessary here, but hope this helps you out or is a source of ideas for you.
We leave you with the reworked read_exif_off_image_rotate.php, changed this way, that has this corresponding new live run.
Previous relevant Location Services iPad Camera Geolocation Jpeg Exif Tutorial is shown below.
Maybe you were here when we left off with Location Services iPad Camera Geolocation Primer Tutorial as shown below …
- amazed at the power of mobile devices, specifically an iPad, with their Camera apps and Geolocation data … and/or …
- not knowing enough … and still not … about when the iPad chooses to output the photograph in *.PNG or *.JPG … ie. the blurb below about meta data versus exif data … and …
- vowing to be like Fu Manchu … so here we are
Okay, you might want to read more about that iPad decision regarding *.PNG versus *.JPG, and you may want to start here, but in any case, with our fish photographs from that day we got a mix of …
- JPG
- PNG
… and as far as teeing into Geolocation (or Geotagging) data goes we, so far, much prefer JPG, because we can use PHP exif methods, and today’s tutorial is about that, building on what we did at PHP Exif Image Information Rotation Tutorial. As far as the PNG photos go … well, there’s more to do regarding metadata considerations, and we haven’t given up on that … but that is for another day. In the meantime, enjoy the reworked read_exif_off_image_rotate.php, changed this way, that has this corresponding new live run link to show that GPS data we haven’t seen up until the fish photographs, and interpreting the exif data now, means we can display a Google Chart Map Chart …
… showing the Geolocation context of where and when, and even how high up, this photograph was taken. Cute, huh?!
Previous relevant Location Services iPad Camera Geolocation Primer Tutorial is shown below.
We had occasion to read here about resetting Location Services on an iPad … which, we need to say, you’d only read about and contemplate if something you’ve done has stopped a Geolocation thing you wanted to happen to no longer happen and you’ve ruled out tweaks to Location Service individual app settings with regard to this (and you may have been in on the discussion we had with some time back with Location Services iPad Battery Loss Issue Tutorial) … and the result of doing this opened up the iPad’s Camera app for permission for Location Services to record Geolocation data, and it looks like, time, information on the photographs you take. We also explore this subject at WordPress 4.1.1’s Location Services iPad Camera Geolocation Primer Tutorial. Presumably, this happens in the photograph’s exif data, perhaps (am not promising, might pan out to be metadata) … which interests us as well, and we’ll go into that more soon.
So we used this functionality, as well as zooming in on some fish in our pond for today’s digital photography sojourn. Maybe seeing fish is a source of mindfulness …
… for you, as it seems to help for me?
The Geolocation aspects are great, as you can imagine, for helping document a trip, in pictures, even well after the event, if you can get the context of where you are when a photograph is taken.
If this was interesting you may be interested in this too.
If this was interesting you may be interested in this too.
If this was interesting you may be interested in this too.
If this was interesting you may be interested in this too.