mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-21 12:53:11 +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
|
@ -30,6 +30,9 @@ defmodule Philomena.Processors.Png do
|
||||||
{_output, 0} =
|
{_output, 0} =
|
||||||
System.cmd("optipng", ["-fix", "-i0", "-o2", "-quiet", "-clobber", file, "-out", optimized])
|
System.cmd("optipng", ["-fix", "-i0", "-o2", "-quiet", "-clobber", file, "-out", optimized])
|
||||||
|
|
||||||
|
# Remove useless .bak file
|
||||||
|
File.rm(optimized <> ".bak")
|
||||||
|
|
||||||
optimized
|
optimized
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue