mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +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
|
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(" ")
|
||||||
|
|
Loading…
Reference in a new issue