use msvg for svg analysis

This commit is contained in:
byte[] 2020-05-21 18:20:51 -04:00
parent 3ba3eb87b3
commit 10dc8f2c21

View file

@ -12,9 +12,9 @@ defmodule Philomena.Analyzers.Svg do
end end
defp stats(file) do defp stats(file) do
case System.cmd("mediastat", [file]) do case System.cmd("identify", ["-format", "%W %H\n", file]) do
{output, 0} -> {output, 0} ->
[_size, _frames, width, height, _num, _den] = [width, height] =
output output
|> String.trim() |> String.trim()
|> String.split(" ") |> String.split(" ")