[Okular-devel] [okular] [Bug 335133] regression: margins not trimmed on scanned documents, works on non-image files

Japs j.nespolo at gmail.com
Tue May 27 22:20:47 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=335133

--- Comment #6 from Japs <j.nespolo at gmail.com> ---
(In reply to comment #5)
> Created attachment 86796 [details]
> Screen capture of the rendering of the file
> 
> If you open it with kolourpaint and say, convert it to monochrome, you'll
> see there's actually non white stuff all over (or go to image more effects
> and reduce the gamma completely)

I see what you mean, especially using kmag like in your screenshot. Indeed a
faint yellow regular lattice appears.
However, I'm fairly sure that, in the past, these documents were handled right.
Do you think that changes in the PDF rendering backend could produce the yellow
artifacts?
This could also explain why, when opening the file in Gimp at 600dpi I cannot
see any yellow lines.

Also, I'm trying to mess around with Utils::imageBoundingBox(). As a first
attempt, I'm changing the check for a white border with one for qGray values
less than a threshold.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list