Skip to content

Commit

Permalink
FIX: missing change for: 15de62c
Browse files Browse the repository at this point in the history
related to: #39
  • Loading branch information
Oldes committed Dec 1, 2021
1 parent 97c1a7f commit 34e0e2c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/mezz/codec-image-ext.reb
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,12 @@ if find codecs 'dds [
none
]
]

if find codecs 'qoi [
extend codecs/qoi 'size? function ["Return QOI image size or none" img [file! url! binary!]][
unless binary? img [img: read/binary/part img 32]
unless find/match img #{716F6966} [return none]
try [return to pair! binary/read img [SKIP 4 UI32BE UI32BE]]
none
]
]

0 comments on commit 34e0e2c

Please sign in to comment.