×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

accessing EXIF information in a jpg image

accessing EXIF information in a jpg image

accessing EXIF information in a jpg image

(OP)
Is there any foxpro code snippet anywhere to allow access to the EXIF information?
I have a 3rd party control which can read the EXIF information but not write any changes.
Thanx

GenDev

RE: accessing EXIF information in a jpg image

It shouldn't be too difficult to write some suitable code yourself. The EXIF data is stored at a fixed position within the JPG, and it has a more-or-less fixed format. You can find the relevant details here:
https://www.media.mit.edu/pia/Research/deepview/ex....

One you have that information, you can use FILETOSTR() read the JPG into a memory variable, then make the changes you need, then use STRTOFILE() to write it back.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: accessing EXIF information in a jpg image

(OP)
I have since located the 'Help' file for my image control and find that some of the Exif functions are built in methods so no intention to confuse - sorry!

GenDev

RE: accessing EXIF information in a jpg image

Hello,

exiftool (https://exiftool.org/exiftool_pod.html) can read and write data (with many options)
It is freeware and available as a commandline app.

Regards
tom

RE: accessing EXIF information in a jpg image

One of the nice things about the EXIFTOOL that Tom recommended is that it is not limited to graphics files. It appears to work with many other media types, including Kindle e-books (but for reading only, not read-write unfortunately - not sure why that should be).

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: accessing EXIF information in a jpg image

Quote (genedev)

no intention to confuse - sorry!

My own confusion is already done with in your other thread. Now just take one second to realize why I asked you to post your conclusion here and not there, gendev: Future users.

Don't forget the bigger picture of why this forum exists: To build a knowledgebase that answers question for people searching without even starting their own new threads. And in a case you put a question aside and solve it with other means, that's not perfect for someone looking for Exif information extraction code, but it makes clear this thread doesn't offer that, because you found a solution elsewhere.

Even better now, your conclusion caused tom to post another solution.

Chriss

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close