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):
|
||||
call([
|
||||
'/usr/local/bin/convert',
|
||||
'{image}[0]'.format(image=input_file),
|
||||
output_file
|
||||
'/usr/local/bin/gs',
|
||||
'-q',
|
||||
'-sDEVICE=jpeg',
|
||||
'-dLastPage=1',
|
||||
'-o',
|
||||
output_file,
|
||||
input_file
|
||||
])
|
||||
Reference in new issue
Block a user