Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit 0e0405a

Browse files
authored
attempt at fixing orientation for photos that store orientation in EXIF
1 parent a7b5a83 commit 0e0405a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

file.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ func IngestMultipartFile(
227227
"90",
228228
"-resize",
229229
fmt.Sprint(desiredSize, "x", desiredSize),
230-
"+profile",
231-
"\"*\"",
230+
"-auto-orient",
231+
"-strip",
232232
fmt.Sprint(ingestDir, "/.", format),
233233
).Run()
234234
if err != nil {
@@ -277,8 +277,8 @@ func IngestMultipartFile(
277277
fmt.Sprint(ingestDir, "/original"),
278278
"-quality",
279279
"90",
280-
"+profile",
281-
"\"*\"",
280+
"-auto-orient",
281+
"-strip",
282282
fmt.Sprint(ingestDir, "/optimized"),
283283
).Run()
284284
if err != nil {

0 commit comments

Comments
 (0)