Saving as PDF results in unwanted blur

Post questions on how to use or achieve an effect in Inkscape.
dersmon
Posts: 5
Joined: Mon Mar 14, 2016 2:50 am

Saving as PDF results in unwanted blur

Postby dersmon » Mon Mar 14, 2016 3:37 am

Hello everyone,

I am fairly new to Inkscape and use it to post process some test plots (confusion matrices).

I generate my plots with python scripts as PDF files. When I open those, everything looks fine in Inkscape, I edit them and save them as Inkscape SVG files. Loading the SVG files again works too. But when I save the edited plots again as PDF, suddenly the matrix cells are blurred. What am I missing? I fiddled around with the export settings, but I don't see what causes the behaviour.

confusion.pdf
Original matrix generated with pyplot.
(22.79 KiB) Downloaded 181 times

confusion_edited.pdf
The same matrix after opening it in Inkscape and saving it with different name.
(15.49 KiB) Downloaded 178 times


Cheers,
dersmon

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Saving as PDF results in unwanted blur

Postby Moini » Mon Mar 14, 2016 3:45 am

That's because the image is really tiny - it has only 32x32 px, and Inkscape tries to 'enlarge' it, without making it look blocky. This way of rendering also transfers to exported pdfs.

You can either:
- right-click on the image, select 'object properties', then select optimizeSpeed in the Image Rendering dropdown, to make Inkscape enlarge the image in 'blocky' and not 'beautiful' kind of way,
- or you can open the bitmap image with a graphics editor, and enlarge it to be large enough for a pdf of the size you need (at least 600 px per inch).
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

dersmon
Posts: 5
Joined: Mon Mar 14, 2016 2:50 am

Re: Saving as PDF results in unwanted blur

Postby dersmon » Mon Mar 14, 2016 6:19 am

Hey Moini,

I have no Image Rendering dropdown when opening 'object properties'. I just can assign an ID, label, title and description. Or did you refer to something else?

EDIT: To which bitmap image are you referring? Those are both vector graphics, right?

Cheers,
Simon

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Saving as PDF results in unwanted blur

Postby Moini » Mon Mar 14, 2016 6:44 am

No, the colored squares are all single pixels in a 32x32 px raster image. The image rendering dropdown is only available when you select an image, so make sure you have the corresponding object selected. (Use Ctrl+click to select any object, regardless of grouping).

Check the status line at the bottom to see what kind of object you have selected.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

dersmon
Posts: 5
Joined: Mon Mar 14, 2016 2:50 am

Re: Saving as PDF results in unwanted blur

Postby dersmon » Mon Mar 14, 2016 7:00 am

Ah, I see. I now got: "Image 32x32: embedded; masked in layer confusion. ...". But right clicking -> Object properties still does not have any Image rendering dropdown.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Saving as PDF results in unwanted blur

Postby Moini » Mon Mar 14, 2016 7:05 am

What's your Inkscape version?
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

dersmon
Posts: 5
Joined: Mon Mar 14, 2016 2:50 am

Re: Saving as PDF results in unwanted blur

Postby dersmon » Mon Mar 14, 2016 7:18 am

Ok, it's version Inkscape 0.48.4 r9939. Seems like I am not really up to date... ;)

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Saving as PDF results in unwanted blur

Postby Lazur » Mon Mar 14, 2016 7:21 am

Hi.

Check this.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Saving as PDF results in unwanted blur

Postby Moini » Mon Mar 14, 2016 7:24 am

If you're on Ubuntu, which still ships with an outdated version, unfortunately, you can use the ppa to get the current version:
https://launchpad.net/~inkscape.dev/+ar ... ntu/stable
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

dersmon
Posts: 5
Joined: Mon Mar 14, 2016 2:50 am

Re: Saving as PDF results in unwanted blur

Postby dersmon » Mon Mar 14, 2016 7:35 am

Thanks Lazur, I will have a look at it.

I installed the 0.9 Version and now Moini's initial fix works. Thank you both!


Return to “Help with using Inkscape”