From a3ed8d98b753b62ef6b261d57c095f8ccce8d632 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 18 Jul 2022 09:20:34 -0400 Subject: [PATCH] handle TopLeft orientation --- lib/philomena/processors/jpeg.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena/processors/jpeg.ex b/lib/philomena/processors/jpeg.ex index e4dde2ff..b5cef344 100644 --- a/lib/philomena/processors/jpeg.ex +++ b/lib/philomena/processors/jpeg.ex @@ -27,7 +27,7 @@ defmodule Philomena.Processors.Jpeg do with {output, 0} <- System.cmd("identify", ["-format", "%[orientation]\t%[profile:icc]", file]), [orientation, profile] <- String.split(output, "\t") do - orientation != "Undefined" or profile != "" + orientation not in ["Undefined", "TopLeft"] or profile != "" else _ -> true