• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Reading .jpg MetaData with JavaScript  RSS feed

 
Greenhorn
Posts: 17
Android Chrome Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I currently am having a hard time trying to read metadata from a .jpg file with javascript. The goal is to store a caption for a particular image in the "title" field of meta data for a .jpg image and read it to display on a web applet. I've looked into ImageInfo and what few examples I could find do not seem to work and I'm finding any kind of documentation for it sparse. At this point I'm completely at a loss at where to look (and yes we really have to use javascript for this) thank you very much in advance.

Edit: Here are two code snippet attempts I have made


 
Bartender
Posts: 1810
28
Chrome Eclipse IDE Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly happens when you run this code? Please TellTheDetails. <-- click

The first thing I would try would be an absolute path to the file. Are you sure your code is finding the file? Relying on default directories can lead to hard to diagnose bugs.
 
Oceas Anderson
Greenhorn
Posts: 17
Android Chrome Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes the file was being found and was easily displayed however I have resolved the issue thank you for your response.
 
J. Kevin Robbins
Bartender
Posts: 1810
28
Chrome Eclipse IDE Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can tell us what you did to resolve the issue, it might help someone else in the future.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you do to correct this? I found this original code source like you that was using other metadata like height, width, etc. I have been trying to use it to get title like you have here.

I know this is a long shot, since the question was asked a few years ago, but it's worth a shot.
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!