GithubHelp home page GithubHelp logo

Image blurring on export about drawio HOT 5 CLOSED

dnviti avatar dnviti commented on May 22, 2024
Image blurring on export

from drawio.

Comments (5)

davidjgraph avatar davidjgraph commented on May 22, 2024

How does any of this relate to draw.io?

from drawio.

dnviti avatar dnviti commented on May 22, 2024

The original image is very sharp, but when imported into draw.io and exported in png it becomes very blurry. Is it some kind of compression that draw.io makes?

from drawio.

davidjgraph avatar davidjgraph commented on May 22, 2024

Ah, OK. Yes, draw.io compresses larger images by default. Hold shift whilst dragging and dropping the image onto the canvas.

from drawio.

davidjgraph avatar davidjgraph commented on May 22, 2024

Override EditorUi.prototype.resampleThreshold and
EditorUi.prototype.maxImageBytes if you want to change it programmatically.

from drawio.

dnviti avatar dnviti commented on May 22, 2024

@davidjgraph I changed the two parameters you suggested. The problem is resolved when importing, but when exporting the image is still compressed and then blurred.
I'm testing it in a custom environment using the embedding API.
Here's an example: https://goo.gl/OVgEWa (need to use SHIFT+DRAG here)
In my real working environment there is my server address instead of "https://www.draw.io/".

The thing is: if you download the original image (the one you see when you first open the page), then you open the editor by clicking on it, if on the blank editor page you'll drag-drop the original image and then you'll click on save, you'll see that the image EXPORTED BY THE EDITOR is A LOT smaller than the original one. Can i resolve that issue? It is VERY important for my company to resolve this issue!

from drawio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.