B4J Question How to read the EXIF metadata from an large jpg image with B4J?

js486dog

Active Member
Licensed User
Longtime User
I modified this code:

LOOK HERE

and I am attaching a program that reads latitude and longitude from a jpg file.
jar file for Libraries folder is attached.

Everything seems to be fine as long as the 360 degree jpg file is small (164 kb).
But the problem arises if the 360 degree jpg file is large (14 MB).
Could someone please advise me how to modify the code to read metadata from a large jpg file as well?
Or is there any other way to read the EXIF metadata (latitude, longitude ...) with B4J?
 

Attachments

  • InlineJava new.zip
    357 KB · Views: 136

js486dog

Active Member
Licensed User
Longtime User
1. What happens with the large file?

2. It will probably behave the same, but please try it with the code I posted in that thread.

Erel, please look at the attached pictures and the ERROR report:


 

Attachments

  • large image is ERROR.jpg
    445.4 KB · Views: 106
  • small image is OK.jpg
    110.9 KB · Views: 95
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Looks like you are missing the xmpcore-x.x.xx.jar which contains the missing class (the x in the name is the version etc, get the latest one that works).
 
Upvote 0

js486dog

Active Member
Licensed User
Longtime User
Looks like you are missing the xmpcore-x.x.xx.jar which contains the missing class (the x in the name is the version etc, get the latest one that works).


Thank you very much "Daestrum" now works fine with xmpcore-5.1.2.
Do not work with xmpcore-6.1.11.
 

Attachments

  • large image is OK.jpg
    112.6 KB · Views: 89
Upvote 0
Solution
Cookies are required to use this site. You must accept them to continue using the site. Learn more…