Rendering of eps figure generated with Matlab

Bug #98526 reported by loloemr
4
Affects Status Importance Assigned to Milestone
ghostscript (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: evince

I notice a problem of eps rendering on evince all version (dapper, edgy, feisty). I generate contour plot figure using matlab, and the scale does not render the color correctly. A screen capture can be found here :

http://loloemr.homelinux.org/bugreport/evince_eps_matlab/Capture.png

The eps that has trouble can be downloaded here :
http://loloemr.homelinux.org/bugreport/evince_eps_matlab/mu0_orientation.eps

Rendering of grayscale level is correct with kpdf, acrobat reader and gv.

ProblemType: Bug
Architecture: i386
Date: Thu Mar 29 11:00:26 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/evince
Package: evince 0.8.0-0ubuntu1
PackageArchitecture: i386
ProcCmdline: evince file:///home/lolo/Desktop/Review/gji_review.pdf
ProcCwd: /home/lolo
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 LANG=fr_FR.UTF-8@euro
 SHELL=/bin/bash
SourcePackage: evince
Uname: Linux ecrins 2.6.20-13-generic #2 SMP Sun Mar 25 00:21:25 UTC 2007 i686 GNU/Linux

Revision history for this message
loloemr (lpouillo) wrote :
Revision history for this message
loloemr (lpouillo) wrote :

Mistake in the bug description.

The rendering of the eps works fine with gimp or kcolourpaint.

When integrated into a pdf using latex, the rendering change again :
http://loloemr.homelinux.org/bugreport/evince_eps_matlab/Capture_pdf.png

Revision history for this message
Sebastien Bacher (seb128) wrote :

Evince uses gs -dDOINTERPOLATE, that's a gs-esp bug

Changed in evince:
importance: Undecided → Low
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

do

sudo apt-get install gs-gpl
sudo update-alternatives gs

and try whether this helps. IOf you are not able to print any more now, return to ESP GhostScript via

sudo update-alternatives gs

and choosing gs-esp.

Changed in gs-esp:
status: Unconfirmed → Needs Info
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you try with the new gs-gpl packages?

Download all packages from

http://www.linux-foundation.org/~till/tmp/ubuntu/gutsy/gs-gpl/binary/

and do

sudo dpkg -i *gs-esp*.deb *gs-gpl*.deb

to replace your ESP Ghostscript by the new GPL Ghostscript.

Revision history for this message
loloemr (lpouillo) wrote : Re: [Bug 98526] Re: Rendering of eps figure generated with Matlab

Hi,

I have tested the package you propose but it has dependencies problem :
Here is the log (in french, sorry ...)

dpkg : des problèmes de dépendances empêchent la configuration de gs-gpl :
 gs-gpl dépend de libc6 (>= 2.5-5) ; cependant :
  La version de libc6 sur le système est 2.5-0ubuntu14.
 gs-gpl dépend de gs-common (>= 0.3.9) ; cependant :
  Le paquet gs-common n'est pas installé.
dpkg : erreur de traitement de gs-gpl (--install) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de gs-gpl-x :
 gs-gpl-x dépend de libc6 (>= 2.5-5) ; cependant :
  La version de libc6 sur le système est 2.5-0ubuntu14.
 gs-gpl-x dépend de gs-gpl (>= 8.60) ; cependant :
 Le paquet gs-gpl n'est pas encore configuré.
dpkg : erreur de traitement de gs-gpl-x (--install) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de
libgs-gpl8 :
 libgs-gpl8 dépend de libc6 (>= 2.5-5) ; cependant :
  La version de libc6 sur le système est 2.5-0ubuntu14.
 libgs-gpl8 dépend de libgnutls13 (>= 1.5.3-0) ; cependant :
  La version de libgnutls13 sur le système est 1.4.4-3build1.
 libgs-gpl8 dépend de libstdc++6 (>= 4.2-20070208) ; cependant :
  La version de libstdc++6 sur le système est 4.1.2-0ubuntu4.
dpkg : erreur de traitement de libgs-gpl8 (--install) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de
libgs-gpl-dev :
 libgs-gpl-dev dépend de libgs-gpl8 ; cependant :
 Le paquet libgs-gpl8 n'est pas encore configuré.
dpkg : erreur de traitement de libgs-gpl-dev (--install) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de gs-esp :
 gs-esp dépend de gs-gpl ; cependant :
 Le paquet gs-gpl n'est pas encore configuré.
dpkg : erreur de traitement de gs-esp (--install) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de gs-esp-x :
 gs-esp-x dépend de gs-gpl-x ; cependant :
 Le paquet gs-gpl-x n'est pas encore configuré.
dpkg : erreur de traitement de gs-esp-x (--install) :
 problèmes de dépendances - laissé non configuré
dpkg : des problèmes de dépendances empêchent la configuration de
libgs-esp-dev :
 libgs-esp-dev dépend de libgs-gpl-dev ; cependant :
 Le paquet libgs-gpl-dev n'est pas encore configuré.
dpkg : erreur de traitement de libgs-esp-dev (--install) :
 problèmes de dépendances - laissé non configuré
Des erreurs ont été rencontrées pendant l'exécution :
 gs-gpl
 gs-gpl-x
 libgs-gpl8
 libgs-gpl-dev
 gs-esp
 gs-esp-x
 libgs-esp-dev

Should I install the newer version of libc6 (last time I have done such
thing, it corrupts my system ..)

Thank you.

Lolo

Till Kamppeter a écrit :
> Can you try with the new gs-gpl packages?
>
> Download all packages from
>
> http://www.linux-foundation.org/~till/tmp/ubuntu/gutsy/gs-gpl/binary/
>
> and do
>
> sudo dpkg -i *gs-esp*.deb *gs-gpl*.deb
>
> to replace your ESP Ghostscript by the new GPL Ghostscript.
>
>

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Due to change of Artifex' license policy to do the head development of Ghostscript under GPL and the merger of the extra functionality of ESP Ghostscript (ESP Ghostscript is discontinued now), the packages gs-esp and gs-afpl got obsolete. They are both replaced by gs-gpl, version 8.60 or newer. I have already done a first test package:

For Gutsy download all packages from

http://www.linux-foundation.org/~till/tmp/ubuntu/gutsy/gs-gpl/binary/

and do

sudo dpkg -i *gs-esp*.deb *gs-afpl*.deb *gs-gpl*.deb

to replace your ESP and AFPL Ghostscript by the new merged GPL Ghostscript.

If you are running Feisty or older download the files from

http://www.openprinting.org/download/printing/esp-gpl-ghostscript-merge/

into the same directory. Then do

sudo apt-get install build-essential
sudo apt-get build-dep gs-esp gs-gpl
dpkg-source -x gs-gpl_8.60.dfsg.1-0ubuntu1.dsc
cd gs-gpl-8.60.dfsg.1
dpkg-buildpackage -rfakeroot
cd ..
sudo dpkg -i *gs-esp*.deb *gs-afpl*.deb *gs-gpl*.deb

Answer every question which appears with "y", so that all needed packages get installed.

Or try the distribution-independent binary package from

http://www.openprinting.org/download/printing/esp-gpl-ghostscript-merge/README

The new grand unified GPL Ghostscript will make it into Ubuntu soon, after

- Agreeing on the name with Debian: "gs-gpl" or simply "gs"
- Adding the C header files to libgs-gpl-dev
- Fixing upstream bug 689237: http://bugs.ghostscript.com/show_bug.cgi?id=689237

Please tell us your results with the test packages.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have uploaded new test packages (after working out a common concept with Debian's Ghostscript maintainer):

For Gutsy download all packages from

http://www.linux-foundation.org/~till/tmp/ubuntu/gutsy/ghostscript/binary/

and do

sudo dpkg -i *gs-esp*.deb *gs-afpl*.deb *gs-gpl*.deb *libgs*.deb *ghostscript*.deb

to replace your ESP and/or AFPL Ghostscript by the new merged GPL Ghostscript.

If you are running Feisty or older download the files from

http://www.linux-foundation.org/~till/tmp/ubuntu/gutsy/ghostscript/

into the same directory. Then do

sudo apt-get install build-essential
sudo apt-get build-dep gs-esp gs-gpl
dpkg-source -x ghostscript_8.60.dfsg.1-0ubuntu1.dsc
cd ghostscript-8.60.dfsg.1
dpkg-buildpackage -rfakeroot
cd ..
sudo dpkg -i *gs-esp*.deb *gs-afpl*.deb *gs-gpl*.deb *libgs*.deb *ghostscript*.deb

Answer every question which appears with "y", so that all needed packages get installed.

Please tell us your results with the test packages.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

With GPL Ghostscript 8.60 (both my test packages and installation from upstream without patches) I have the same results: Correct rendering without "-dDOINTERPOLATE", wrong rendering with "-dDOINTERPOLATE".

So the option "-dDOINTERPOLATE" of upstream Ghostscript is broken.

Micah Cowan (micahcowan)
Changed in ghostscript:
status: Needs Info → Confirmed
Revision history for this message
Alex Cherepanov (alex-cherepanov) wrote :

Till, do you still have the sample files ?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I never had sample files. I have only offered different Ghostscript versions for testing. I did not test by myself.

loloemr, can you please test whether this works with Intrepid? Thanks.

Revision history for this message
loloemr (lpouillo) wrote :

Hi Till,

I'm running intrepid but things doesn't seems to have really improved.

I'have attached : the old version of the pdf generated in 2007 as gji_review.pdf.old

Revision history for this message
loloemr (lpouillo) wrote :

the freshly compiled version :

gji_review.pdf

Revision history for this message
loloemr (lpouillo) wrote :

and the concerned figure as mu0_orientation

Rendering is OK with acroread, poor with kpdf and bad with evince.

PS : sorry for the three posts, I do not figure how put several files ...

Revision history for this message
Alex Cherepanov (alex-cherepanov) wrote :

The EPS file is not compatible with forced interpolation. Not every image can be interpolated.
For instance, when the chessboard is drawn as a 8x8 image the interpolation is likely to produce undesired results.

I think the puck is back on the Evince side.

The EPS file also uses a transfer function in an objectionable way, but this doesn't change the main problem.
Image interpolation is not always desirable.

Revision history for this message
Alex Cherepanov (alex-cherepanov) wrote :

There is already a bug report 249400 against Evince about the same problem.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

All OK now, fixed in evince.

Changed in ghostscript (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.