fix(image processing): do not uninterlace if no png path

This commit is contained in:
Eric Leroy-Terquem 2024-10-24 18:13:00 +02:00
parent 4dc13cc56c
commit 93fcd4ad49
No known key found for this signature in database
GPG key ID: 53D8FAECEF207605

View file

@ -17,6 +17,7 @@ class UninterlaceService
end
def interlaced?(png_path)
return false if png_path.blank?
png = MiniMagick::Image.open(png_path)
png.data["interlace"] != "None"
end