Skip to content

Conversation

@ctrlaltca
Copy link

Hello, thank you for this useful library that always served me well.
Today I found a possible problem in the usage of exif_imagetype that in case of malformed images may generate a warning:

Image

The image is obviously problematic / corrupted, but avoiding the warning let the parsing complete successfully.
I've used the same approach already implemented for getimagesize() a few lines later

@ctrlaltca ctrlaltca changed the title Avoid warning from exif_imagetype() on corrupted png images fix: Avoid warning from exif_imagetype() on corrupted png images Oct 1, 2025
@ctrlaltca
Copy link
Author

Php 8.5 CI seems to be failing for unrelated reasons

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