This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 27 - Pages: 2 [ 1 2 | Next ] - Last Post: 12-Jun-2020 12:59 Last Post By: RobM
MarkusD

Posts: 529
Registered: 13-Apr-2006
Aera tags not working with PNG-files
Posted: 08-Jun-2020 20:12
 
  Click to reply to this thread Reply
Hi,

  • Take a PNG-picutre;
  • "Set aera tags";
  • Define an aera and close the dialog;
  • Open "Set aera tags" again. The area is still there;
  • Close the album;
  • Reopen the album;
  • Navigate to your PNG-picture;
  • "Set aera tags";
  • The aera is gone;

Using jAlbum 20.2
RobM

Posts: 3,254
Registered: 4-Aug-2006
Re: Aera tags not working with PNG-files
Posted: 08-Jun-2020 21:49   in response to: MarkusD in response to: MarkusD
 
  Click to reply to this thread Reply
Has this ever worked with PNGs?
If you look at the Metadata, after setting an area tag, you will not find the XMP data, like
xmp.mwg-rs:Regions/mwg-rs:AppliedToDimensions/stDim:h=720
xmp.mwg-rs:Regions/mwg-rs:AppliedToDimensions/stDim:unit=pixel
xmp.mwg-rs:Regions/mwg-rs:AppliedToDimensions/stDim:w=491
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:h=0.277778
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:unit=normalized
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:w=0.407332
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:x=0.370289
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:y=0.277778
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Description=David
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Name=David
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Type=Face
MarkusD

Posts: 529
Registered: 13-Apr-2006
Re: Aera tags not working with PNG-files
Posted: 08-Jun-2020 22:01   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
Has this ever worked with PNGs?
I've no idea. ;-)

If you look at the Metadata, after setting an area tag, you will not find the XMP data, like
xmp.mwg-rs:Regions/mwg-rs:AppliedToDimensions/stDim:h=720
xmp.mwg-rs:Regions/mwg-rs:AppliedToDimensions/stDim:unit=pixel
xmp.mwg-rs:Regions/mwg-rs:AppliedToDimensions/stDim:w=491
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:h=0.277778
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:unit=normalized
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:w=0.407332
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:x=0.370289
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:y=0.277778
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Description=David
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Name=David
xmp.mwg-rs:Regions/mwg-rs:RegionList[1]/mwg-rs:Type=Face
I wasn't aware of that the region data is stored in the picture. I thought it is stored in the .info file.

So, my proposal is, that the function "Set aera tags" should not be available for objects who can't handle them. Thanks.
RobM

Posts: 3,254
Registered: 4-Aug-2006
Re: Aera tags not working with PNG-files
Posted: 08-Jun-2020 22:36   in response to: MarkusD in response to: MarkusD
Helpful
  Click to reply to this thread Reply
I've updated the wiki for Set area tags to show it only works with JPEG images.
MarkusD

Posts: 529
Registered: 13-Apr-2006
Re: Aera tags not working with PNG-files
Posted: 09-Jun-2020 20:00   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
I've updated the wiki for Set area tags to show it only works with JPEG images.
Thanks!

The deluxe solution would be to disable the menu if a non-JPEG images is active. So no one even can go in the wrong direction. Thanks, Markus
RobM

Posts: 3,254
Registered: 4-Aug-2006
Re: Aera tags not working with PNG-files
Posted: 09-Jun-2020 20:54   in response to: MarkusD in response to: MarkusD
 
  Click to reply to this thread Reply
MarkusD wrote:
RobM wrote:
I've updated the wiki for Set area tags to show it only works with JPEG images.
Thanks!

The deluxe solution would be to disable the menu if a non-JPEG images is active. So no one even can go in the wrong direction. Thanks, Markus

As far as I can tell, there seems no reason why PNGs can’t have region data written to and read. So the deluxe solution would be to support PNGs, and if the jAlbum libraries can’t, then to disable the option.
davidekholm

Posts: 3,310
Registered: 18-Oct-2002
Re: Aera tags not working with PNG-files
Posted: 09-Jun-2020 21:40   in response to: MarkusD in response to: MarkusD
 
  Click to reply to this thread Reply
Attachment pixymeta.jar (1,5 MB)
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
RobM

Posts: 3,254
Registered: 4-Aug-2006
Re: Aera tags not working with PNG-files
Posted: 09-Jun-2020 21:46   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Also RAW files?
davidekholm

Posts: 3,310
Registered: 18-Oct-2002
Re: Aera tags not working with PNG-files
Posted: 09-Jun-2020 22:14   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
Also RAW files?

Not according to the pixymeta readme , but you can always request it from the pixymeta developer :-)
RobM

Posts: 3,254
Registered: 4-Aug-2006
Re: Aera tags not working with PNG-files
Posted: 09-Jun-2020 22:18   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
RobM wrote:
Also RAW files?

Not according to the pixymeta readme , but you can always request it from the pixymeta developer :-)

I wasn’t considering using it on RAW files myself, just wanted to be sure for updating the wiki.
RobM

Posts: 3,254
Registered: 4-Aug-2006
Re: Aera tags not working with PNG-files
Posted: 09-Jun-2020 22:23   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Another question, what about the Metadata extractor and video gps data
Is this going to be one or the other?
davidekholm

Posts: 3,310
Registered: 18-Oct-2002
Re: Aera tags not working with PNG-files
Posted: 09-Jun-2020 22:30   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
Another question, what about the Metadata extractor and video gps data
Is this going to be one or the other?

We have support for mp4 camera dates in metadata-extractor 2.13 already it seems.
RobM

Posts: 3,254
Registered: 4-Aug-2006
Re: Aera tags not working with PNG-files
Posted: 09-Jun-2020 22:31   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
RobM wrote:
Another question, what about the Metadata extractor and video gps data
Is this going to be one or the other?

We have support for mp4 camera dates in metadata-extractor 2.13 already it seems.

Not dates, GPS.
davidekholm

Posts: 3,310
Registered: 18-Oct-2002
Re: Aera tags not working with PNG-files
Posted: 09-Jun-2020 22:45   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Ah, do you have a sample mp4 with geotagging added? What if you simply put v2.14 (attached) in place of v2.13?
RobM

Posts: 3,254
Registered: 4-Aug-2006
Re: Aera tags not working with PNG-files
Posted: 09-Jun-2020 22:49   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Going off line now, if I get time later I’ll try it out, otherwise tomorrow.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums