I have a document containing vector elements, text and one bitmap. The bitmap has a very low resolution: 27x27 pixels. I scale it so that it's 10 cm wide, so it pixelizes like hell but that's what I want: this is astronomical data.
- Inside Inkscape, the bitmap retains its pixelized look which is good (I guess it uses a nearest-neighbor interpolation).
- However, when I export to PDF, the image is blurred (looks like bilinear filtering to me), which is bad.
- Opening the SVG with the standard image viewer of my Ubuntu also shows a blurred bitmap. That's consistent with the PDF at least.
Question: how can I ask Inskape to use a neirest-neighbor interpolation instead of whatever default it uses?
The funny thing is that the bitmap was actually contained inside a PDF, I imported it and removed the ugly text and axes. So I know that the bitmap can look crisp in a PDF, I just don't find a way of doing it myself.
- I think it really is a bitmap, because right-clicking on it opens the contextual menu with "Image properties" in it.
- I tried to set "Inkscape preferences/Bitmap/Oversample bitmap" to None, to 2, and to 16. I couldn't see any difference.
- I tried tracing the bitmap, but I don't manage. I have never done that before, so it is likely that I did not understand how to use that tool. I select "Multiple scans" and "color", but it creates blobs. Changing the number of scans from 2, 8, 64, 128 isn't helping. It's probably not even the right tool at all.
EDIT
As a temporary workaround I used Filters/Raster/Resample and made is as big as I could. It results in a very heavy and slow PDF but at least it doesn't look horrible. Still not ideal.