pdf to jpg moved to ghost script backend
This commit is contained in:
1 parent
8ee3ed5c75
commit
18150e8b35
1 file changed
+7
-3
@@ -93,7 +93,11 @@ def image_magick_resize(ifile, ofile, size, quality=85):
|
|||||||
|
|
||||||
def image_magick_pdf_to_img(input_file, output_file):
|
def image_magick_pdf_to_img(input_file, output_file):
|
||||||
call([
|
call([
|
||||||
'/usr/local/bin/convert',
|
'/usr/local/bin/gs',
|
||||||
'{image}[0]'.format(image=input_file),
|
'-q',
|
||||||
output_file
|
'-sDEVICE=jpeg',
|
||||||
|
'-dLastPage=1',
|
||||||
|
'-o',
|
||||||
|
output_file,
|
||||||
|
input_file
|
||||||
])
|
])
|
||||||
Reference in new issue
Block a user