You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[5.3] Backport fixes for image validation (#17983)
* Suppress getimagesize() warnings
Backport of #17944.
`getimagesize` will fail with a notice on files smaller than 12 bytes.
This ends up becoming an ErrorException which is pretty annoying.
Suppressing the warning is enough to still end up with a `false` result
which will fail the validation gracefully instead of grueing up your
stew.
* Proper float comparison in ratio validation
* Convert fixtures to PNG format
* Add test for validation of ratio with no fractional part
0 commit comments