Itโs natural for people to try to introduce order into their world. No matter what you think of the goings on in the world, you can โretireโ into that โcushioned worldโ of I.T. and create your own order. The most common form of โorderโ used, we dare to guess, in the I.T. world is to sort data. Our data we started with yesterdayโs PHP ImageMagick Image Dimensions Primer Tutorial in the form of image URLs and their dimensions (plus some other fields) presented in a table are a case in point where a lot of people would be quick to point out โthat it would be good to sort by widthโ and those who would โdo a triple pike with a double somersault to see data sorted by heightโ.
If you are in charge of the data that forms your data, that is easy to arrange. But if you are the โsecond sourceโ you need to work out your own ways to manipulate the data to be able to sort it usefully. We found these manipulations still only had to call on โฆ
- awk # command line processor repeats column field data
- sed # command line editor most associated with pipe commands
โฆ with the focus, today, on awkโs String functionality โฆ
โฆ preparing the ground for the Linux command โฆ
- sort # sort with its -k -t -n -r switches
โฆ enabling the useful sorting of image URL filespec data presented in a table โฆ order indeed!
You can retry this out for yourself at todayโs liverun link with its underlying serverside PHP code you could call image_dimensions
php and changed in thisway as you wish.
Previous relevant PHP ImageMagick Image Dimensions Primer Tutorial is shown below.
We revisit the talents of the brilliant ImageMagickโs Identify command featuring, last, in Location Services iPad Camera Geolocation Png Metadata Tutorial to start down the road of a web server image information presenter web application.
With ImageMagick command line โฆ
identify [webServerImageFileSpec]
โฆ sums up what we build a web application around, having a PHP shell use its exec method to filter the information through (Linux command line) โฆ
- awk # command line processor repeats column field data
- sed # command line editor most associated with pipe commands
โฆ to result in the table contents of our image (specification) table in our web application today.
You can try this out for yourself at todayโs liverun link with its underlying serverside PHP code you could call image_dimensions
php as you wish.
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_rotatephp, changed thisway, 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_rotatephp, changed thisway, 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.
If this was interesting you may be interested in this too.