Skip to content

Instantly share code, notes, and snippets.

@JimiSweden
Last active January 22, 2024 02:15
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JimiSweden/329242731d07da2303826a6983f9e345 to your computer and use it in GitHub Desktop.
Save JimiSweden/329242731d07da2303826a6983f9e345 to your computer and use it in GitHub Desktop.
draw.io windows app override default configuration to allow larger images

problem

When trying to insert an image you might get the warning "Image too big" when selecting "Actual size" in the insert dialog

Soulution

is to change the default settings.

note: this is tested on Windows, probably similar in Mac - check out the linke here if you are using Mac https://gist.github.com/cellularmitosis/e5e7d1517939b98418a58cdd8595dd8c

open Draw.io app ()

  • in menu "Extras" , select "Configuration". in configuration you have to insert a json configuration and for the image size it lokks like this, setting max Byte and pixel size
{
  "maxImageSize": "3000",
  "maxImageBytes": "3000000"
}

Default settings, 1MB and 520px on the longest edge (x or y)

{
  "maxImageSize": "520",
  "maxImageBytes": "1000000"
}

Other settings can be found here (not the best pverview but might point you in the right direction) https://desk.draw.io/support/solutions/articles/16000058316-configure-the-diagrams-net-and-draw-io-editor

@deecey
Copy link

deecey commented May 24, 2022

Works like a charm, thanks a lot!

@luoxuan-cs
Copy link

Great! I have spent hours on this problem... Thanks for your tutorial!

@alexey-kudinov-github
Copy link

Thanks! Helped me a lot!

@dcrystalj
Copy link

any idea how to fix this in draw.io in vscode ?

@Gloogger
Copy link

Thanks so much! It helps a lot!

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