diff --git a/lib/philomena_media/processors/jpeg.ex b/lib/philomena_media/processors/jpeg.ex index 98697b422..45aed8462 100644 --- a/lib/philomena_media/processors/jpeg.ex +++ b/lib/philomena_media/processors/jpeg.ex @@ -42,7 +42,7 @@ defmodule PhilomenaMedia.Processors.Jpeg do defp requires_lossy_transformation?(file) do with {output, 0} <- - System.cmd("identify", ["-format", "%[orientation]\t%[profile:icc]", file]), + System.cmd("magick", ["identify", "-format", "%[orientation]\t%[profile:icc]", file]), [orientation, profile] <- String.split(output, "\t") do orientation not in ["Undefined", "TopLeft"] or profile != "" else @@ -59,7 +59,7 @@ defmodule PhilomenaMedia.Processors.Jpeg do if requires_lossy_transformation?(file) do # Transcode: strip EXIF, embedded profile and reorient image {_output, 0} = - System.cmd("convert", [ + System.cmd("magick", [ file, "-profile", srgb_profile(),