Jump to content
Sign in to follow this  
Hans-Wolfgang

Open jpg Image as Text File

Recommended Posts

Using RadStudio editor, I looked at ccr.exif.pas in detail; included in what I'm seeing is a collection of maker notes [for cameras by Apple, Canon, Casio, Kodak, Konica, Panasonic and/or Nikon.  Since my Leica Typ240 equipment is not in this list, I'm assuming that is the cause of the errors I'm encountering when trying to open one of these files. Wondering, however, if a descendent of one of the methods within CCR.Exif [or a simple, new one] can easily be written [and at what cost] to extract just the description and title [nothing more at present] of any image [of more than 1,000] from which I would want to extract simply the genus and species of each flower, displayed to user on the fly while she or he browses the collection on WWW.

 

A sample jpg is attached. 

M1016929m11-1.jpg

Share this post


Link to post

In  addition the following will be useful: sublocation, city, province and country. All of those are written out into metadata in the previously attached image file

Share this post


Link to post

I suspect that attaching an image file here strips the metadata, since the one you attached appears to have none, or at least the EXIF data is gone.

Share this post


Link to post

Seems unlikely that your diagnosis is accurate. If you could provide an example file and your code I think it would be easy enough to find out what's up. 

Share this post


Link to post

If you will provide your eMail address, I will be glad to re-post my example. According to Dave Nottage in his reply of 5 h. prior to yours, the image as posted in my own, earlier reply on this forum was lacking in [at least, exif] metadata. 

 

At any rate, I am trying again here. There is no other code per se, at this time. The code that I plan to write is for an html page containing images displayed from user query: entire collection or selected members thereof. Each image will be displayed within <td> ... </td> tags of an array of thumbnails, or of a single, full-size image. For a working example, please see http://www.orchids.enwphotos.com, and view page source.

M1016929m11-1.jpg

Share this post


Link to post

@Hans-Wolfgang The image itself or its quality is not important, so the lowest quality will do, as long as the meta data is still there, intact and not edited, just as camera added it, so zip it and try it here in the forum or uploaded it somewhere while it is zipped.

Share this post


Link to post

There's an image here with EXIF data: http://orchids.enwphotos.com/2013-1/310.html

 

Which includes the camera make etc. I use a Chrome plugin to view the data: https://chrome.google.com/webstore/detail/exif-viewer/mmbhfeiddhndihdjeganjggkmjapkffm

20 hours ago, Hans-Wolfgang said:

Since my Leica Typ240 equipment is not in this list, I'm assuming that is the cause of the errors I'm encountering when trying to open one of these files

I doubt it, since the camera make and model is in text form, not an index to different models

20 hours ago, Hans-Wolfgang said:

Wondering, however, if a descendent of one of the methods within CCR.Exif [or a simple, new one] can easily be written [and at what cost] to extract just the description and title [nothing more at present]

Are you referring to Delphi code? Also, description and title are not known tags - perhaps you're referring to ImageDescription? There's a list here: https://www.exiv2.org/tags.html. Note that not all images will have anything in this tag.

 

There's an answer on SO that suggests a simpler method of extracting EXIF at least in relation to JPEGs: https://stackoverflow.com/a/18624442/3164070

 

There's also a couple of alternatives to CCR-EXIF, here: https://torry.net/pages.php?id=104

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×