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

Commit

Permalink
attempt at fixing orientation for photos that store orientation in EXIF
Browse files Browse the repository at this point in the history
  • Loading branch information
tnix100 authored Nov 11, 2024
1 parent a7b5a83 commit 0e0405a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions file.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ func IngestMultipartFile(
"90",
"-resize",
fmt.Sprint(desiredSize, "x", desiredSize),
"+profile",
"\"*\"",
"-auto-orient",
"-strip",
fmt.Sprint(ingestDir, "/.", format),
).Run()
if err != nil {
Expand Down Expand Up @@ -277,8 +277,8 @@ func IngestMultipartFile(
fmt.Sprint(ingestDir, "/original"),
"-quality",
"90",
"+profile",
"\"*\"",
"-auto-orient",
"-strip",
fmt.Sprint(ingestDir, "/optimized"),
).Run()
if err != nil {
Expand Down

0 comments on commit 0e0405a

Please sign in to comment.