mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
Supporting auto rotate for HEIF/HEIC images.
This commit is contained in:
parent
f9eadf55bb
commit
474300f17e
1 changed files with 2 additions and 2 deletions
|
|
@ -39,8 +39,8 @@ func resizer(buf []byte, o Options) ([]byte, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// If JPEG image, retrieve the buffer
|
||||
if rotated && imageType == JPEG && !o.NoAutoRotate {
|
||||
// If JPEG or HEIF image, retrieve the buffer
|
||||
if rotated && (imageType == JPEG || imageType == HEIF) && !o.NoAutoRotate {
|
||||
buf, err = getImageBuffer(image)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue