handle TopLeft orientation

This commit is contained in:
byte[] 2022-07-18 09:20:34 -04:00
parent 776399347e
commit a3ed8d98b7

View file

@ -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