Bug 221402 - poor rendering compared to gv - anti-aliasing options wrong?
Summary: poor rendering compared to gv - anti-aliasing options wrong?
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PS backend (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-05 15:05 UTC by markus.parker
Modified: 2010-01-06 00:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Exchanging the parameters may resolve the problem (170 bytes, patch)
2010-01-05 15:08 UTC, markus.parker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markus.parker 2010-01-05 15:05:41 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    openSUSE RPMs

The rendering of postscript file yields poor results compared to the program gv on my screen. When looking at the anti-aliasing options of okular in generator_ghostview.cpp I discovered that okular uses 2 bits for text alpha and 4 bits for graphics alpha, while gv uses 4 bits for text alpha and 2 bits for graphics alpha. When I tell gv to do it the other way around, the result was as poor as in okular.

On my Laptop display (1400x1050) there is hardly any  difference between okular and gv, however on my usual screen (1050x1680), the visualization is kind of ugly. I guess this is because of the higher resolution.
Comment 1 markus.parker 2010-01-05 15:08:09 UTC
Created attachment 39584 [details]
Exchanging the parameters may resolve the problem

I did not compile the changes or test it, but I hope this illustrates my point.
Comment 2 markus.parker 2010-01-05 15:12:00 UTC
Comment on attachment 39584 [details]
Exchanging the parameters may resolve the problem

>238,239c238,239
><     if (cache_AAgfx) graphicsAA = 4;
><     if (cache_AAtext) textAA = 2;
>---
>>     if (cache_AAgfx) graphicsAA = 2;
>>     if (cache_AAtext) textAA = 4;
This refers to the file
/trunk/KDE/kdegraphics/okular/kdegraphics/okular/generators/spectre/generator_ghostview.cpp
Comment 3 Albert Astals Cid 2010-01-06 00:17:31 UTC
SVN commit 1070544 by aacid:

increase text alpha bits to 4 as it's known to improve quality quite a bit
BUGS: 221402


 M  +1 -1      generator_ghostview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1070544