From 10dc8f2c21dcf27381c6f713888847b96683c9f8 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 21 May 2020 18:20:51 -0400 Subject: [PATCH] use msvg for svg analysis --- lib/philomena/analyzers/svg.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena/analyzers/svg.ex b/lib/philomena/analyzers/svg.ex index c6b41591..8eae2373 100644 --- a/lib/philomena/analyzers/svg.ex +++ b/lib/philomena/analyzers/svg.ex @@ -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(" ")