Draw preview image at full resolution
As reported in #281 and confirmed by the test file in #279, downsampling the preview adversely affects quality of image rotation especially for small font sizes and marginal scans. Full size gets rotation accuracy. This makes rotation a little inefficient since it rasterizes twice - to be addressed later.
This commit is contained in:
@@ -349,8 +349,8 @@ def rasterize_preview(
|
||||
context):
|
||||
pageinfo = get_pageinfo(input_file, context)
|
||||
options = context.get_options()
|
||||
canvas_dpi = get_canvas_square_dpi(pageinfo, options) / 2
|
||||
page_dpi = get_page_square_dpi(pageinfo, options) / 2
|
||||
canvas_dpi = get_canvas_square_dpi(pageinfo, options)
|
||||
page_dpi = get_page_square_dpi(pageinfo, options)
|
||||
|
||||
ghostscript.rasterize_pdf(
|
||||
input_file, output_file, xres=canvas_dpi, yres=canvas_dpi,
|
||||
|
||||
Reference in New Issue
Block a user