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

Screenshot crash #430

Open
himel888 opened this issue Jan 22, 2025 · 6 comments
Open

Screenshot crash #430

himel888 opened this issue Jan 22, 2025 · 6 comments

Comments

@himel888
Copy link

himel888 commented Jan 22, 2025

When trying to crop image which is screenshot fatal error occured saying cropview can't nil.
I'm using version 2.23.1 with swift package manager.

@guoyingtao
Copy link
Owner

@himel888
Could you post one screenshot which caused the crash here so I can have a test?
Thank you!

@himel888
Copy link
Author

I checked and found that which image have bitspercomponent > 8 is crashed while cropping.

@himel888
Copy link
Author

My image which have crash issue bitspercomponent of that image is 16 and that image is a screenshot.

@guoyingtao
Copy link
Owner

Would you mind posting one image which caused the crash here? @himel888
That would be very helpful to locate the issue and fix it. Thank you!

@himel888
Copy link
Author

Image

This is the image! Screenshot taken using iPhone 11 and os version is 15.4.1
Thank you

@guoyingtao
Copy link
Owner

guoyingtao commented Feb 1, 2025

@himel888
I couldn't reproduce the crash.
Is this image the original screenshot you made?
Because the dimensions for an iPhone 11 screenshot are 1284 x 2778 pixels (portrait) and 2778 x 1284 pixels (landscape), but this image's size is 499 x 1080
Also usually the screenshots should be png format but this image is jpg format.
Could you post the original image here? Thank you!

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

2 participants