lib/image_optim/worker/pngout.rb in image_optim-0.26.1 vs lib/image_optim/worker/pngout.rb in image_optim-0.26.2
- old
+ new
@@ -30,9 +30,13 @@
-y
#{src}
#{dst}
]
execute(:pngout, *args) && optimized?(src, dst)
+ rescue SignalException => e
+ raise unless Signal.list.key(e.signo) == 'SEGV'
+ raise unless resolve_bin!(:pngout).version <= '20150920'
+ warn "pngout caused Segmentation fault for #{src}"
end
end
end
end