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

Explore why YCbCr color space is RGB in test_exif test #1279

Open
kba opened this issue Oct 1, 2024 · 0 comments
Open

Explore why YCbCr color space is RGB in test_exif test #1279

kba opened this issue Oct 1, 2024 · 0 comments

Comments

@kba
Copy link
Member

kba commented Oct 1, 2024

          Actually, Pillow just does not say anything. We could ask ImageMagick about it, though.

(However, %[EXIF:PhotometricInterpretation] does not yield anything... Not sure how to get that info.)

So IMO this test should state YCbCr and fail until we fix OcrdExif.run_identify to include the results from the CLI, or we find a way to make Pillow give us the info.

BTW, using Pillow's TiffTags we can actually get the right value:

# val = img.tag_v2.named()['PhotometricInterpretation']
val = img.tag_v2.get(262)
interpretation = dict((v, k) for k, v in TiffTags.TAGS_V2.get(262).enum.items())
val = interpretation[val]

Originally posted by @bertsky in #1276 (comment)

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

1 participant