
On 2015-10-14 08:36 (+0200), Enno R. Oldewurtel wrote:
When I import an eps that contains a bitmap (e.g. an eps generated from a MATLAB figure, that also has an image displayed), the bitmap in the imported form does not show the original pixels anymore but suffers from compression artefacts. These artefacts are not very visible for large image with small pixels relative to the total image size.
However, I often need to display zoomed regions of microscopy image, where those compressions are having quite a detrimental effect on the import. As an example I created a MATLAB figure with 10x10 random pixels. I attach the svg file where I imported the MATLAB figure after saving it as a PNG within MATLAB and another import of the eps file that I saved with MATLAB. The artefacts are clearly visible. ;)
Most times the compression is probably great to reduce overall file size, but in occasions like the ones described above it would be great to have a different or no compression of the bitmaps during import.
See the discussion e.g. in the comments of this report: * “Interpolation while viewing in-file bitmap image” https://bugs.launchpad.net/inkscape/+bug/1418038
It should cover the new rendering options for bitmap images in Inkscape 0.91, both when importing a bitmap image directly, as well as when importing foreign vector formats with embedded bitmap data.
As workaround for bitmap images embedded in imported EPS/PS files in Inkscape 0.91, you can install and use the extension attached to this report: * https://bugs.launchpad.net/inkscape/+bug/1357808 (The extension will be available as 'Extensions > Images > Set Image Attributes'; just enable "[x] Render images blocky" on the 'Basic' tab, and apply)
Also related (see comments 11 and 12): * “discrete color scale bitmap becomes continuous object after eps/pdf export” https://bugs.launchpad.net/inkscape/+bug/1174651
hth, V