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

Use tiff Tag enum from tiff crate #14

Merged
merged 4 commits into from
Jul 22, 2024
Merged

Conversation

weiji14
Copy link
Member

@weiji14 weiji14 commented Jul 22, 2024

Refactor to use tiff::tags::Tag instead of the in-house crate::lowlevel::TIFFTag enum.

Breaking backward compatibility by:

  • Removing the decode_tag function, use tiff::tags::Tag::from_u16 instead.
  • Removing validate_required_tags_for function, no direct replacement, but this should really be handled upstream by the image-tiff crate.

Deprecation warnings on:

Part of #7.

Use tiff::tags::Tag (https://docs.rs/tiff/0.9.1/tiff/tags/enum.Tag.html) instead of the TIFFTag enum in src/lowlevel.rs.  Removed the decode_tag function, use `tiff::tags::Tag::from_u16` instead.
@weiji14 weiji14 added this to the v0.1.0 milestone Jul 22, 2024
@weiji14 weiji14 self-assigned this Jul 22, 2024
Use tiff::tags::Tag instead. Not removing yet because some of the TIFFTag enum variants should be ported upstream.
Planning to deprecate `crate::lowlevel::TIFFTag`, so validation should be handled upstream and based on tiff::tags::Tag instead.
@weiji14 weiji14 marked this pull request as ready for review July 22, 2024 02:03
@weiji14 weiji14 merged commit a85cfb8 into main Jul 22, 2024
1 check passed
@weiji14 weiji14 deleted the use-upstream-tiff-tag-enum branch July 22, 2024 02:47
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

Successfully merging this pull request may close these issues.

1 participant