CaiJingLong / dart_image_size_getter

Use dart file api to get image size, needn't use decode. just read the metadata.
Apache License 2.0
64 stars 29 forks source link

Support lossless WebP #38

Closed poppingmoon closed 4 months ago

poppingmoon commented 4 months ago

Fix #37

Change WebpDecoder to check if input is lossless format and get the size. Also, add a test for lossless format.

For info about WebP lossless format, see https://developers.google.com/speed/webp/docs/riff_container#simple_file_format_lossless and https://developers.google.com/speed/webp/docs/webp_lossless_bitstream_specification#3_riff_header.

CaiJingLong commented 4 months ago

Thank for PR.