From 44c3956c3ecd13717e1d511b5730d496ffd32a65 Mon Sep 17 00:00:00 2001 From: "Luna D." Date: Mon, 22 Sep 2025 11:58:57 +0200 Subject: [PATCH 1/2] use "magick: instead of deprecated "convert" --- lib/philomena_media/processors/jpeg.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_media/processors/jpeg.ex b/lib/philomena_media/processors/jpeg.ex index 98697b422..3ad94c81a 100644 --- a/lib/philomena_media/processors/jpeg.ex +++ b/lib/philomena_media/processors/jpeg.ex @@ -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(), From 85090a088ae3ef77f1f5ef3aaa782eeffadf4b3b Mon Sep 17 00:00:00 2001 From: "Luna D." Date: Mon, 22 Sep 2025 12:09:38 +0200 Subject: [PATCH 2/2] also use "magick identify" --- lib/philomena_media/processors/jpeg.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_media/processors/jpeg.ex b/lib/philomena_media/processors/jpeg.ex index 3ad94c81a..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