I exported an heatmap from Matlab as PDF. If I view the PDF created by matlab print -painters -dpdf command, I see the correct output:

enter image description here

However if I import into Inkscape (either via Poppler or not) with the image gets interpolated and blurred:

enter image description here

When I re-save as pdf, it also looks interpolated. I have noted the svg xml code for the image is like this:

     width="185.10374" />

When I export to PDF from Inkscape, it also looks similarly blurred. Any idea how to make it look like the original PDF above, after editing in inkscape?

1 Answer 1


Change the Bitmap scale (image rendering) in the preferences to Blocky(optimizeSpeed)

enter image description here

Here's an example SVG

  • 2
    It's also possible to do this per image. Right-click on image, select 'Object Properties', and select the 'Optimize Speed' option in the 'Image rendering' dropdown. In addition to this, the pdf renderer needs to support this rendering mode. A trick would be to make a bitmap copy of the enlarged, blocky picture (Edit > Make Bitmap Copy). The dpi value for this can be set in the preferences at Edit > Preferences > Bitmaps > Create. Make it large :)
    – Moini
    Aug 7, 2018 at 20:31
  • Great, confirmed both this and @Moini's method seem to work both in inkscape and saving as pdf. Thanks! Aug 19, 2018 at 22:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.