Skip to content

.drawio.png file saving generates invalid/broken blank image #329

@saiya

Description

@saiya

Hi! Thank you for making super great plugin.

I would like to report an issue of the latest this plugin + latest InteliJ IDEA.

My environment

  • MacOS 14.7.2
  • InteliJ IDEA 2024.3.1 CE
  • Diagrams.net Integration 0.2.6

Problem

  1. Create empty .drawio.png file, or open .drawio.png file with this plugin
  2. Edit the image
  3. Save
  4. Open the file with any image viewer (InteliJ's image viewer, Mac's Preview.app, browser, ...) that shows blank

The mimimal reproduced example

Edit with this plugin:

image

Open that drawio.png with any viewer:

image image

The file (compressed as zip to prevent GitHub doing any post-processing): test.drawio.png.zip

Workaround

Editing and saving that image with draw.io's official standalone editor works well.
The resulted .drawio.png image is valid PNG.

image

Note: Because editing that image with the draw.io's official standalone editor works well, embedding draw.io metadata inside PNG looks working well.

Metadata

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