Remove redundant *res_render

This commit is contained in:
James R. Barlow 2015-07-26 12:56:10 -07:00
parent b98ba8d174
commit 6c3cb6acba
2 changed files with 2 additions and 4 deletions

View File

@ -397,8 +397,8 @@ def rasterize_with_ghostscript(
for image in pageinfo['images']):
device = 'pnggray'
xres = max(pageinfo['xres_render'], options.oversample or 0)
yres = max(pageinfo['yres_render'], options.oversample or 0)
xres = max(pageinfo['xres'], options.oversample or 0)
yres = max(pageinfo['yres'], options.oversample or 0)
with NamedTemporaryFile(delete=True) as tmp:
args_gs = [
'gs',

View File

@ -102,8 +102,6 @@ def _pdf_get_pageinfo(infile, page: int):
int(round(xres * pageinfo['width_inches']))
pageinfo['height_pixels'] = \
int(round(yres * pageinfo['height_inches']))
rx, ry = pageinfo['xres'], pageinfo['yres']
pageinfo['xres_render'], pageinfo['yres_render'] = rx, ry
return pageinfo