Skip to content

webp format tile parsing failed #110

Closed
@sys-liqian

Description

I use mbtilesserver v0.6.1
My tile is webp format.
Program execution error : Could not detect tile format
image

The basic element of a RIFF file is a chunk. It consists of:
image

Chunk size is variable
So i think can't use []byte("\x52\x49\x46\x46\xc0\x00\x00\x00\x57\x45\x42\x50\x56\x50") to verify whether it is webp

I changed the program to the following figure:
image
The program passed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions