Skip to content

Commit 34e0e2c

Browse files
committed
FIX: missing change for: 15de62c
related to: #39
1 parent 97c1a7f commit 34e0e2c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/mezz/codec-image-ext.reb

+9
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,12 @@ if find codecs 'dds [
177177
none
178178
]
179179
]
180+
181+
if find codecs 'qoi [
182+
extend codecs/qoi 'size? function ["Return QOI image size or none" img [file! url! binary!]][
183+
unless binary? img [img: read/binary/part img 32]
184+
unless find/match img #{716F6966} [return none]
185+
try [return to pair! binary/read img [SKIP 4 UI32BE UI32BE]]
186+
none
187+
]
188+
]

0 commit comments

Comments
 (0)