remove .bak file created by optipng bug

https://sourceforge.net/p/optipng/bugs/74/
This commit is contained in:
byte[] 2020-01-03 11:54:05 -05:00
parent 11e908ef14
commit e5549cf8ed

View file

@ -29,7 +29,10 @@ defmodule Philomena.Processors.Png do
{_output, 0} =
System.cmd("optipng", ["-fix", "-i0", "-o2", "-quiet", "-clobber", file, "-out", optimized])
# Remove useless .bak file
File.rm(optimized <> ".bak")
optimized
end