mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-04 08:37:59 +01:00
handle TopLeft orientation
This commit is contained in:
parent
776399347e
commit
a3ed8d98b7
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ defmodule Philomena.Processors.Jpeg do
|
||||||
with {output, 0} <-
|
with {output, 0} <-
|
||||||
System.cmd("identify", ["-format", "%[orientation]\t%[profile:icc]", file]),
|
System.cmd("identify", ["-format", "%[orientation]\t%[profile:icc]", file]),
|
||||||
[orientation, profile] <- String.split(output, "\t") do
|
[orientation, profile] <- String.split(output, "\t") do
|
||||||
orientation != "Undefined" or profile != ""
|
orientation not in ["Undefined", "TopLeft"] or profile != ""
|
||||||
else
|
else
|
||||||
_ ->
|
_ ->
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in a new issue