Skip to content

Failure on Webkit Mac App  #129

Description

@ozgurozkan123

Tested on Safari, Chrome and Webkit Mac app.

The file on this link: https://reminis-pip-pab.s3.amazonaws.com/DW_ET.jpg

It gives "Invalid JPEG metadata: Invalid segment size." error on Webkit Mac App. It is in function parseMetaData(file, callback, options, data) line 137

It gives a strange file attached below on load. It's 4 bytes jpeg. and canvas.toBlob gives null blob.
1607976297314_0_2da783815c7d850955cc9aba1edcd170

There is no problem with Chrome and Safari with the same code.

Activity

  1. blueimp commented on Sep 25, 2021

    @blueimp
    Owner

    Hi @ozgurozkan123, sorry for the late reply.
    Unfortunately the file you provided is not accessible anymore.
    Can you upload it somewhere more permanent so we can have a look?

  2. darkvovich commented on Oct 17, 2021

    @darkvovich

    I have the same problem with all my images =(

    Chrome on Windows
    osennyaya-doroga-les-trassa-asfalt

  3. blueimp commented on Oct 20, 2021

    @blueimp
    Owner

    @darkvovich
    The Invalid JPEG metadata: Invalid segment size. error is logged if the length defined in a JPEG APPn segment exceeds the size of the maxMetaDataSize option or the size of the file.
    It seems like the image blob generated from a Canvas for your picture contains a JPEG APP2 segment that is larger than what is defined as maxMetaDataSize for image head replacement (currently 256 bytes).
    I'm not sure why the Canvas generated image contains a bigger sized meta data segment for your image (since canvas data does not retain JPEG meta data), but I'll release a fix that raises this to 1024 bytes.

  4. darkvovich commented on Oct 20, 2021

    @darkvovich

    Thx!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions