xiaozhuai / imageinfo

Free Palestine🇵🇸🇵🇸🇵🇸Cross platform super fast single header c++ library to get image size and format without loading/decoding. Support avif, bmp, cur, dds, gif, hdr (pic), heic (heif), icns, ico, j2k, jp2, jpeg (jpg), jpx, ktx, png, psd, qoi, tga, tiff (tif), webp ...
MIT License
106 stars 26 forks source link

Make `imageinfo::parse` take input as const reference #6

Closed Mis1eader-dev closed 6 months ago

Mis1eader-dev commented 6 months ago

This allows it to compile the example given in the README file.

auto info = imageinfo::parse<imageinfo::RawDataReader>(imageinfo::RawData(data, size));
xiaozhuai commented 6 months ago

Thanks for the pr!