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

Multi-frame images (gif, tiff) and max height calculation #407

Open
champikasam opened this issue Dec 13, 2023 · 0 comments
Open

Multi-frame images (gif, tiff) and max height calculation #407

champikasam opened this issue Dec 13, 2023 · 0 comments

Comments

@champikasam
Copy link

Hi, thanks for the amazing work in creating and maintaining Imagor!

I am using Imagor to extract metadata from different image files. I get an error when i try to extract metadata from one of the gif files.

I did some testing, and I see that Imagor has settings for max width, height and resolution. The gif file i used has dimensions 1200x950 and 319 frames. As per the width and height, it shouldn't exceed the default max width and height settings in Imagor (nor the max resolution setting).

As per Imagor logs, i see the width of the giff being picked up correctly, but the height is shown as 950x319=303050 which exceeds the default max height. Therefore the metadata extraction fails with an error saying image exceeds max resolution. I only tested this with a gif file but i believe this should be the same for other multi-page image formats as well.

I could increase the max height value but is there a better way to avoid frame count from being used to perform photo bomb prevention? The metadata returned out from Imagor has the dimensions correctly. It's just that photo bomb prevention uses the frame count as well to calculate the height.

Thanks in advance!

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