Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image blurring on export #47

Closed
dnviti opened this issue Jan 9, 2017 · 5 comments
Closed

Image blurring on export #47

dnviti opened this issue Jan 9, 2017 · 5 comments

Comments

@dnviti
Copy link

dnviti commented Jan 9, 2017

Hi! I'm an IT Technician on OMA SPA.
We are very excited about using your editor to build an important project, but we are experiencing a lot of problems with raster images (png mostly) because they remain very blurred after export... Is there any way to fix this?
You'll find the self explanatory images below so you can easly notice the differences between original and exported:
Original Image
original
Imported and then exported with draw.io
exported

@dnviti dnviti changed the title Image resizing on draw.io and not in chrome extension Image blurring on export Jan 9, 2017
@davidjgraph
Copy link
Collaborator

How does any of this relate to draw.io?

@dnviti
Copy link
Author

dnviti commented Jan 9, 2017

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?

@davidjgraph
Copy link
Collaborator

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

@davidjgraph
Copy link
Collaborator

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

@dnviti
Copy link
Author

dnviti commented Jan 10, 2017

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants