Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request - MetaData #471

Open
ItJustFox opened this issue Apr 11, 2022 · 12 comments
Open

Request - MetaData #471

ItJustFox opened this issue Apr 11, 2022 · 12 comments

Comments

@ItJustFox
Copy link

Is your feature request related to a problem? Please describe.
Yes, I have a lot of image with MetaData, and for no reason I cant see it on png image. But the metadata are here because I can see it on analyser. (Ps I use ExifTool)

Describe the solution you'd like
A way to see the metadata on png like for jpg

@Railline
Copy link

i'm interresed by this fonctionnality too !

@bpatrik
Copy link
Owner

bpatrik commented Jun 13, 2022

Once I update the metadaloader to a newer version #277 I hope png will be supported too.

@grasdk
Copy link
Contributor

grasdk commented Mar 7, 2024

@ItJustFox , @Railline try with the lastest code (you need to build from source) or wait for the next release. There is better support for PNG metadata now.

@Railline
Copy link

@ItJustFox , @Railline try with the lastest code (you need to build from source) or wait for the next release. There is better support for PNG metadata now.

Perfect that ^^ i will wait for the next release i can't build it, i didn't know how to do xD

@bpatrik
Copy link
Owner

bpatrik commented Mar 21, 2024 via email

@grasdk
Copy link
Contributor

grasdk commented Mar 21, 2024

@Railline ah yes, forgot the edge builds. For example if you're using docker there are edge builds:
https://hub.docker.com/r/bpatrik/pigallery2/tags/

Maybe you followed these instructions earlier?
https://github.com/bpatrik/pigallery2/blob/master/docker/README.md
then all you have to do is to replace "latest" with "edge" in your docker config / command

@Railline
Copy link

Nice i will try it ^^
i just pull the new build i wait the end of the scan, it will be very long xD

@Railline
Copy link

i'm on edge version and keyword on png aren't there, i have reset gallery and launch a new scan but nothing appen

@grasdk
Copy link
Contributor

grasdk commented Jun 2, 2024

i'm on edge version and keyword on png aren't there, i have reset gallery and launch a new scan but nothing appen

@Railline Sorry for the long wait. Can you upload a png with a keyword for me to test on?

@Railline
Copy link

Railline commented Jun 5, 2024

i'm on edge version and keyword on png aren't there, i have reset gallery and launch a new scan but nothing appen

@Railline Sorry for the long wait. Can you upload a png with a keyword for me to test on?

No problem u have a life too xD

for the image
Pixiv 111054868_p0 by Leafy Bow

@grasdk
Copy link
Contributor

grasdk commented Jun 6, 2024

Hey @Railline

Thanks for the upload. I took the image for a test and you are right. However, it's not an easy fix.
The keywords-tag is apparently non-standard, if one is to believe the exiftool output, when writing the value:

This is me adding the keyword test to test_png.png

$ exiftool -keywords=test test_png.png 
Warning: [minor] Creating non-standard IPTC in PNG - test_png.png
    1 image files updated

So it works. Is supported by exiftool, but not standard. And also no supported by the framework exifr used here in pigallery2.

So what you could do is copy the keywords to the Xmp-dc:Subject tag instead, as suggested here in the section of the same name: https://exiftool.org/gui/articles/where_what.html

With exiftool, you could run a command like this on *.png maybe using the -r parameter, to copy the keywords to subject. Here is an example of the command with a before and after extract:

$ exiftool -keywords -subject test_png.png 
Keywords                        : test2
Subject                         : test

$ exiftool '-XMP-dc:Subject+<IPTC:Keywords' test_png.png
    1 image files updated

$ exiftool -keywords -subject test_png.png 
Keywords                        : test2
Subject                         : test, test2

First Keywords has value "test2" and Subject has value "test".
Then the command to add keywords to subject
Finally Keywords has value "test2" and Subject has value "test", "test2".

Subject is supported by exifr and by pigallery.

Not what you were looking for, but maybe a bit of help anyway :)

@Railline
Copy link

Hey @Railline

Thanks for the upload. I took the image for a test and you are right. However, it's not an easy fix. The keywords-tag is apparently non-standard, if one is to believe the exiftool output, when writing the value:

This is me adding the keyword test to test_png.png

$ exiftool -keywords=test test_png.png 
Warning: [minor] Creating non-standard IPTC in PNG - test_png.png
    1 image files updated

So it works. Is supported by exiftool, but not standard. And also no supported by the framework exifr used here in pigallery2.

So what you could do is copy the keywords to the Xmp-dc:Subject tag instead, as suggested here in the section of the same name: https://exiftool.org/gui/articles/where_what.html

With exiftool, you could run a command like this on *.png maybe using the -r parameter, to copy the keywords to subject. Here is an example of the command with a before and after extract:

$ exiftool -keywords -subject test_png.png 
Keywords                        : test2
Subject                         : test

$ exiftool '-XMP-dc:Subject+<IPTC:Keywords' test_png.png
    1 image files updated

$ exiftool -keywords -subject test_png.png 
Keywords                        : test2
Subject                         : test, test2

First Keywords has value "test2" and Subject has value "test". Then the command to add keywords to subject Finally Keywords has value "test2" and Subject has value "test", "test2".

Subject is supported by exifr and by pigallery.

Not what you were looking for, but maybe a bit of help anyway :)

i have make a little script for looking all png on my file and put tag directly on the db that work correctly xD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants