4 def resize_image(source_file, out_dir):
8 '-thumbnail', '1000x1000>',
9 out_dir + '/' + source_file.rsplit('/', 1)[-1]
13 def convert_image(source_file, out_dir):
17 '-resize', '1000x1000',
18 out_dir + '/' + source_file.rsplit('/', 1)[-1] + '.jpg'
22 def convert_pdf(source_file, out_dir):
27 def convert_djvu(source_file, view_dir):