validate blank images

This commit is contained in:
Pete Matsyburka
2025-06-26 11:04:25 +03:00
parent de5acd0949
commit 64cd24a24d
4 changed files with 26 additions and 3 deletions
-1
View File
@@ -9,7 +9,6 @@ module ImageUtils
return true if min.all?(255) && max.all?(255)
return true if min.all?(0) && max.all?(0)
return true if min.length >= 4 && min[-1].zero? && max[-1].zero?
false
end