mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-17 03:06:41 -07: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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// If JPEG image, retrieve the buffer
|
// If JPEG or HEIF image, retrieve the buffer
|
||||||
if rotated && imageType == JPEG && !o.NoAutoRotate {
|
if rotated && (imageType == JPEG || imageType == HEIF) && !o.NoAutoRotate {
|
||||||
buf, err = getImageBuffer(image)
|
buf, err = getImageBuffer(image)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue