Bug 220806 - eps shown as raster picture
Summary: eps shown as raster picture
Status: CONFIRMED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: HI normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords: reproducible, usability
: 135323 332618 420894 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-31 14:12 UTC by Alexander Potashev
Modified: 2020-05-30 14:54 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2009-12-31 14:12:33 UTC
Version:           2.3.0 (using 4.3.85 (KDE 4.3.85 (KDE 4.4 Beta2)), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.32

Gwenview shows EPS images as a rater picture:
when you zoom it in, you can see a square for every pixel.

Okular work fine with EPS.
Comment 1 Yngve Levinsen 2013-10-22 14:27:06 UTC
For me, the same is true for Okular now, and it is very frustrating. I create a lot of plots from gnuplot using eps, and it is vital for me to have a program that displays them as vector graphics.

$ okular --version
Qt: 4.8.5
KDE Development Platform: 4.11.2
Okular: 0.17.2
Comment 2 Christoph Feck 2013-12-29 15:30:22 UTC
Yngve, could you please report a bug for Okular separately? Ideally, attach a small .eps file there for testing.
Comment 3 Christoph Feck 2014-03-27 20:50:31 UTC
*** Bug 332618 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Feck 2014-03-27 20:51:30 UTC
*** Bug 135323 has been marked as a duplicate of this bug. ***
Comment 5 Achim Bohnet 2014-11-13 20:15:52 UTC
1) Also in 4.12.2 gwenview shows .eps files as a rasterimage.
2) (at least for my desktop/laptop) dolphin prefered  gwenview to view eps files, with 2nd choice okular which shows the eps fine as a vector graphics.  Easy to fix for me with RMB and properties dialog, but  other may get a wrong impression when the default app (gwenview) only uses raster.

Maybe there is a way to declare okular more preferable for eps files than gwenview?

Achim
Comment 6 Achim Bohnet 2014-11-14 07:10:25 UTC
gwenview.desktop contains a 'fix' for image/*  that introduces a regression for eps aka image/x-eps files:

...
# InitialPreference should be greater than Okular so that Gwenview is the
# primary application associated with images, but less than Konqueror or Dolphin
# so that Gwenview is not the primary applications for folders.
InitialPreference=8
...


Most images types are better handled with gwenview than okular, but it's definitely not the case for eps files.   Amorak had a similar problem with container files: https://bugs.kde.org/show_bug.cgi?id=242292.    Using their solution would be a introduce a 2nd desktop file identical to gwenview.desktop except with new values for:

applications/kde4/gwenview_vectorformats.desktop:
...
# Okular.desktop has InitialPreference 7, gwenview 8, therefore use for all image/* formats
# that are better handled by Okular than by gwenview Preference of 6 [bug #220806]
MimeType=image/x-eps
InitialPreference=6
NoDisplay=true
...

Caveats: 
 * according to fd.o  desktop standard InitialPreference is KDE only.  And MimeType prefs should be handled elsewhere
 * Lots of duplications 99% of a desktop file

So there must be a better/elegant solution. I just don't know/found it.
As David Faure worked on the fd.o standard I've subscribe him to this bug.  @David: sorry if that is considered inappropriate (what should I've done instead?)  I hope you can point us to the right direction to fix this (the other similar problem I can then fix myself).  Thx a lot in advance.

Achim
Comment 7 Nate Graham 2017-11-10 17:21:32 UTC
Still a problem with git master. Rather than adjusting the load order, we should just fix Gwenview's ability to display .eps vector graphics.
Comment 8 Christoph Feck 2020-05-30 14:54:47 UTC
*** Bug 420894 has been marked as a duplicate of this bug. ***