Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions webp.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ func convWebp(src io.Reader, quality int) (*bytes.Buffer, error) {
Quality: quality,
NoAutoRotate: false,
// NoAutoRotateはデフォルトでfalseで、勝手にrotateしてくれる

// Safariなどでは、bimgによってEXIFの回転処理を実施したあとにブラウザ側でEXIFを読んで再度回転してしまうことがあるので、
// EXIFは削除する
StripMetadata: true,
}
webpImg, err := bimg.NewImage(out).Process(opts)
if err != nil {
Expand Down