mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-03-17 20:17:48 +02:00
Fix heic magic bytes
This commit is contained in:
parent
1d1caeb06a
commit
36ad0d31e2
@ -3,6 +3,7 @@
|
||||
## [Unreleased]
|
||||
### Fixed
|
||||
- Fix loadind BMP stored in ICO.
|
||||
- Fix ambiguous HEIC magic bytes (MP4 videos has been detected as HEIC).
|
||||
|
||||
## [2.10.0] - 2020-02-13
|
||||
### Added
|
||||
|
@ -140,7 +140,7 @@ func heicReadBoxes(d *heicDimensionsData, r io.Reader) error {
|
||||
return err
|
||||
}
|
||||
if !d.IsFilled() {
|
||||
return errors.New("Dimensions data wan't found in meta box")
|
||||
return errors.New("Dimensions data wasn't found in meta box")
|
||||
}
|
||||
return nil
|
||||
case "hdlr":
|
||||
@ -184,5 +184,12 @@ func DecodeHeicMeta(r io.Reader) (Meta, error) {
|
||||
}
|
||||
|
||||
func init() {
|
||||
RegisterFormat("????ftyp", DecodeHeicMeta)
|
||||
RegisterFormat("????ftypheic", DecodeHeicMeta)
|
||||
RegisterFormat("????ftypheix", DecodeHeicMeta)
|
||||
RegisterFormat("????ftyphevc", DecodeHeicMeta)
|
||||
RegisterFormat("????ftypheim", DecodeHeicMeta)
|
||||
RegisterFormat("????ftypheis", DecodeHeicMeta)
|
||||
RegisterFormat("????ftyphevm", DecodeHeicMeta)
|
||||
RegisterFormat("????ftyphevs", DecodeHeicMeta)
|
||||
RegisterFormat("????ftypmif1", DecodeHeicMeta)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user