-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
Cleanup and bless #1639
Cleanup and bless #1639
Conversation
decoder | ||
.seek_to_image(*image_ifd) | ||
.map_err(|e| CogError::IfdSeekFailed(e, *image_ifd, path.clone()))?; | ||
|
||
let zoom = u8::try_from(images_ifd.len() - (image_ifd + 1)) | ||
let zoom = u8::try_from(images_ifd.len() - (idx + 1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The result of images_ifd.len() - (image_ifd + 1)
would be wrong when there are masks. Updated this to images_ifd.len() - (idx + 1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to merge as far as I am concearned.
Lets just make sure that the metadata changes are correct. ^^
verify_requirments
function