fix(image processing): do not uninterlace if no png path
This commit is contained in:
parent
4dc13cc56c
commit
93fcd4ad49
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue