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

TIFF tags CamelCase Error #117

Open
vanmeerb opened this issue Feb 20, 2020 · 0 comments
Open

TIFF tags CamelCase Error #117

vanmeerb opened this issue Feb 20, 2020 · 0 comments

Comments

@vanmeerb
Copy link

in libtiff_ctypes.py#L492 the call to kind.title() can never result in the following CamelCase keys:
name_to_define_map = dict(PhotoMetric={}, PlanarConfig={}, SampleFormat={}, FillOrder={},FaxMode={}, TiffTag={}).
the String.Title() call will result in:
name_to_define_map = dict(Photometric={}, Planarconfig={}, Sampleformat={}, Fillorder={},Faxmode={}, Tifftag={}) !!!!

an easy fix would be:
for key in define_to_name_map.keys():
if key.upper() == kind.upper():
return name_to_define_map[key][tagname.upper()]

Unfortunately, that still doesnt allow me to modify an included tiff-tag.

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