Skip to content

JPEGs are silently converted to PNGs #23

@realulim

Description

@realulim

Describe the bug

Whenever I submit a JPEG to the Plugin and then get the cropped Image back (via ImageCrop.getCroppedImageBase64()) it has turned into a PNG.

This might be because of line 212 in image-crop.tsx:

let croppedImageDataUri = canvas.toDataURL("image/png", 1.0);

Expected behavior

No image format change.

Minimal reproducible example

No response

Add-on Version

1.1.2

Vaadin Version

24.7.11

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions