mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
use msvg for svg analysis
This commit is contained in:
parent
3ba3eb87b3
commit
10dc8f2c21
1 changed files with 2 additions and 2 deletions
|
@ -12,9 +12,9 @@ defmodule Philomena.Analyzers.Svg do
|
|||
end
|
||||
|
||||
defp stats(file) do
|
||||
case System.cmd("mediastat", [file]) do
|
||||
case System.cmd("identify", ["-format", "%W %H\n", file]) do
|
||||
{output, 0} ->
|
||||
[_size, _frames, width, height, _num, _den] =
|
||||
[width, height] =
|
||||
output
|
||||
|> String.trim()
|
||||
|> String.split(" ")
|
||||
|
|
Loading…
Reference in a new issue