Comments (5)
How does any of this relate to draw.io?
from drawio.
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.
Ah, OK. Yes, draw.io compresses larger images by default. Hold shift whilst dragging and dropping the image onto the canvas.
from drawio.
Override EditorUi.prototype.resampleThreshold and
EditorUi.prototype.maxImageBytes if you want to change it programmatically.
from drawio.
@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)
- placeholders %height% %width% %length% are not showing in mm (unit set on view > unit like inch, m, mm ...)
- Color picker sends cursor to left side when exits right while pressing down
- Please change Increase/decrease font size shortcut
- Just a question request
- Add URL parameter to the viewer to select elements with specific tags
- Excess event listeners affecting the performance
- Sharepoint folder picker - search or better organization HOT 2
- Feature: Allow embedding one page in another HOT 5
- Most themes has been removed in self-hosted environment
- Kubernetes Shapes do not show any labels correctly - 20240507 HOT 1
- Unable to download entire diagram in single page as PDF in v24.3.1 online or local app | Working on version v24.2.5 HOT 3
- Move PDF from Export to Save HOT 2
- how to open mermaid2drawio function?
- Character error on Ubuntu 24.04 HOT 2
- Confluence attachments files to be renamed when you rename the drawing file
- Math is not rendered consistently HOT 1
- Project name wrong on integrations page HOT 2
- Allows changing text case
- Using freeform drawing on an iPad can cause the canvas to scale and result in misaligned drawing positions
- Application (diagrams.net) is disabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drawio.