mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
remove .bak file created by optipng bug
https://sourceforge.net/p/optipng/bugs/74/
This commit is contained in:
parent
11e908ef14
commit
e5549cf8ed
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue