mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-12-30 00:31:59 +00:00
Remove redundant *res_render
This commit is contained in:
parent
b98ba8d174
commit
6c3cb6acba
@ -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',
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user