[Poppler-bugs] [Bug 5589] image scaling with cairo is poor quality
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Apr 12 08:13:47 PDT 2010
https://bugs.freedesktop.org/show_bug.cgi?id=5589
Carlos Garcia Campos <carlosgc at gnome.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #70 from Carlos Garcia Campos <carlosgc at gnome.org> 2010-04-12 08:13:46 PDT ---
(In reply to comment #69)
> This bug appears to still be present in the xournal and epdfview programs. It
> has been suggested that it is because they use poppler_page_render_to_pixbuf
> rather than the Cairo backend (which is where this bug was fixed).
Not exactly, because when rendering to a pixbuf cairo backend is used too.
> Can a poppler expert comment on this?
I've just found the problem. It's a bug in the glib frontend. The problem is
that image prescaling is disabled when rendering for printing, and printing is
initialized to True in CairoOutputDev. We are calling
CairoOutputDev::setPrinting() in poppler_page_render but it's missing in
poppler_page_render_to_pixbuf(). Now, that glib frontend depends on cairo, I'm
going to change render_to_pixbuf to call poppler_page_render directly and the
problem will be fixed.
> See:
> http://sourceforge.net/mailarchive/message.php?msg_name=20100312205839.GA13311@mcelrath.org
> and follow-up messages for some details.
Please, note that poppler_page_render_to_pixbuf() and the other GDK functions
are going to be deprecated in a near future, since we are just rendering to a
cairo surface and then converting to a gdk pixbuf.
Thanks for reporting.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list