Posts:
4,156
Registered:
4-Aug-2006
|
|
|
Re: Aera tags not working with PNG-files
Posted:
9 Jun 20, 23:57
in response to: davidekholm
|
|
|
Ah, do you have a sample mp4 with geotagging added? What if you simply put v2.14 (attached) in place of v2.13?
Tried it on a video, GPS data is not shown in the List metadata view. The video has GPS data because I can extract it with my external tool. I just dropped the file in the same location as metadata-extractor-2.13.0.jar, renaming metadata-extractor-2.13.0.jar to stop it being used.
|
|
|
Posts:
4,156
Registered:
4-Aug-2006
|
|
|
Re: Aera tags not working with PNG-files
Posted:
10 Jun 20, 00:11
in response to: RobM
|
|
|
Ah, do you have a sample mp4 with geotagging added? What if you simply put v2.14 (attached) in place of v2.13?
Tried it on a video, GPS data is not shown in the List metadata view. The video has GPS data because I can extract it with my external tool. I just dropped the file in the same location as metadata-extractor-2.13.0.jar, renaming metadata-extractor-2.13.0.jar to stop it being used.
Belay that. Tried it again with a movie just taken on an iPad and it shows Quicktime metadata.ISO 6709=+LA.2563-LON.5726+047.274/
With LA and LON replacing the location of my house 
|
|
|
Posts:
4,156
Registered:
4-Aug-2006
|
|
|
Re: Aera tags not working with PNG-files
Posted:
10 Jun 20, 00:54
in response to: RobM
|
|
|
GPS extraction seems it works with Apple devices, but not with Android devices.
|
|
|
Posts:
4,311
Registered:
18-Oct-2002
|
|
|
Re: Aera tags not working with PNG-files
Posted:
10 Jun 20, 10:22
in response to: RobM
|
|
|
renaming metadata-extractor-2.13.0.jar to stop it being used.
Adding a zero to the root of the file name won't stop that file from being used. You have to change the file extension to something else than .jar, .jaext or .zip.
|
|
|
Posts:
4,311
Registered:
18-Oct-2002
|
|
|
Re: Aera tags not working with PNG-files
Posted:
10 Jun 20, 10:22
in response to: RobM
|
|
|
GPS extraction seems it works with Apple devices, but not with Android devices.
Ah, please report this straight to Drew who maintains the metadata-extractor library and pass sample videos.
|
|
|
Posts:
750
Registered:
13-Apr-2006
|
|
|
Re: Aera tags not working with PNG-files
Posted:
10 Jun 20, 19:14
in response to: davidekholm
|
|
|
|
I think the deluxe solution would be to embed xmp metadata in more file types than just JPEG files. I've experimentally switched the commons imaging library to "PixyMeta" which supports embedding xmp metadata in the following file types: JPEG, GIF, PNG, and TIFF
To try this out, use jAlbum 20.2, then replace lib/jalbum-core.jar with this one: http://jalbum.net/download/beta/jalbum-core.jar
Finally, put the attached file inside jAlbum's lib folder. Now restart jAlbum and try adding area tags to any of these file types: JPEG, GIF, PNG, and TIFF
I've done that, but I receive an error in the console:
jAlbum 20.3b1 system console running Groovy (Groovy Scripting Engine)
This section captures debug prints sent to System.out and System.err
The top section evaluates expressions.
Press Ctrl+E to evaluate an expression. (Evaluates selected text if selection is active)
You have access to the basic jAlbum implicit objects such as engine and window
Sample expressions:
4*(3+2); // Basic calculations
engine.getSkin(); // Use of implicit object
for (AlbumObject ao : selectedObjects) System.out.println(ao); // Iterate over selected objects
window.messageBox("You can interact with any Java object");
Skin loading: 1.295s
Skin loading: 0.567s
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at pixy.meta.Metadata.<clinit>(Unknown Source)
at se.datadosen.jalbum.XmpManager.save(XmpManager.java:222)
at se.datadosen.jalbum.XmpManager.save(XmpManager.java:178)
at net.jalbum.areatagging.AreaTagHandler.saveMWGAreaTags(AreaTagHandler.java:424)
at net.jalbum.areatagging.JAreaTaggingDialog$6.actionPerformed(JAreaTaggingDialog.java:433)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.base/java.net.URLClassLoader.findClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 40 more
I also attached a PNG file so you can test for your self.
If it works for you, so the failure is on my side by not doing the right thing to follow your instructions. So I'll wait until everything settles in an official new release.  Thanks so far!
|
|
|
Posts:
4,311
Registered:
18-Oct-2002
|
|
|
Re: Aera tags not working with PNG-files
Posted:
10 Jun 20, 20:40
in response to: MarkusD
|
|
|
|
I must have missed including the SimpleLog4J libraries. Put the attached jar files within jAlbum's lib folder too
|
|
|
Posts:
750
Registered:
13-Apr-2006
|
|
|
Re: Aera tags not working with PNG-files
Posted:
10 Jun 20, 20:54
in response to: davidekholm
|
|
|
I must have missed including the SimpleLog4J libraries. Put the attached jar files within jAlbum's lib folder too
Bingo! Problem solved. Setting area tags to a PNG-file works. Thanks David!
|
|
|
Posts:
4,156
Registered:
4-Aug-2006
|
|
|
Re: Aera tags not working with PNG-files
Posted:
10 Jun 20, 21:15
in response to: davidekholm
|
|
|
GPS extraction seems it works with Apple devices, but not with Android devices.
Ah, please report this straight to Drew who maintains the metadata-extractor library and pass sample videos.
I restarted my Android phone today and took another video and this time the GPS location is showing up, The Android metadata is listed as Mp4.Latitude=LA.2563
Mp4.Longitude=-LON.5726
iOS metadata is listed as Quicktime metadata.ISO 6709=+LA.2563-LON.5726+047.274/
So, what next Area Tagging for PNG etc. or GPS for videos, or both, somehow?
|
|
|
Posts:
4,311
Registered:
18-Oct-2002
|
|
|
Re: Aera tags not working with PNG-files
Posted:
10 Jun 20, 22:37
in response to: RobM
|
|
|
I restarted my Android phone today and took another video and this time the GPS location is showing up, The Android metadata is listed as Mp4.Latitude=LA.2563
Mp4.Longitude=-LON.5726
iOS metadata is listed as Quicktime metadata.ISO 6709=+LA.2563-LON.5726+047.274/
Great!
So, what next Area Tagging for PNG etc. or GPS for videos, or both, somehow?
That could be a natural next step, but pixymeta is not as widespread as commons imaging (an Apache project) and it's still flagged as beta so I have doubts with regards to the stability. I mean, injecting metadata into image files needs to be done with great care in order not to corrupt them. I don't know just how well pixymeta does that job. I think we need to involve a good bunch of testers before I feel confident to swap commons imaging to pixymeta.
|
|
|
Posts:
4,156
Registered:
4-Aug-2006
|
|
|
Re: Aera tags not working with PNG-files
Posted:
10 Jun 20, 22:45
in response to: davidekholm
|
|
|
So, what next Area Tagging for PNG etc. or GPS for videos, or both, somehow?
That could be a natural next step, but pixymeta is not as widespread as commons imaging (an Apache project) and it's still flagged as beta so I have doubts with regards to the stability. I mean, injecting metadata into image files needs to be done with great care in order not to corrupt them. I don't know just how well pixymeta does that job. I think we need to involve a good bunch of testers before I feel confident to swap commons imaging to pixymeta.
For the GPS element, is it likely to be implemented such that the location pane, in edit mode, shows the location?
|
|
|
Posts:
4,311
Registered:
18-Oct-2002
|
|
|
Re: Aera tags not working with PNG-files
Posted:
12 Jun 20, 12:40
in response to: RobM
|
|
|
For the GPS element, is it likely to be implemented such that the location pane, in edit mode, shows the location?
Yes, why not, but first I need to feel confident that we aren't corrupting any files by switching metadata injection library.
|
|
|
Posts:
4,156
Registered:
4-Aug-2006
|
|
|
Re: Aera tags not working with PNG-files
Posted:
12 Jun 20, 12:59
in response to: davidekholm
|
|
|
For the GPS element, is it likely to be implemented such that the location pane, in edit mode, shows the location?
Yes, why not, but first I need to feel confident that we aren't corrupting any files by switching metadata injection library.
My Android phone is not a standard Android System, so it also needs checking with videos from more phones/cameras. Having thought more about it, it could be working on only a small set of devices. It needs a new thread asking for small sample videos.
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|