pdf to jpg moved to ghost script backend

This commit is contained in:
tmshv committed 2017-02-21 17:52:47 +03:00
1 parent 8ee3ed5c75
commit 18150e8b35
1 file changed
+7 -3
+7 -3
View File
@@ -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
])