- big_image = resize(image, 960, 1440)
- big_image.save(tmp_output_dir + '/' + image_name, optimize=True, bits=8)
- os.system('pngnq -n 8 -e .png -d "%s" -f "%s"' % (
- big_output_dir,
- tmp_output_dir + '/' + image_name,
- ))
- os.remove(tmp_output_dir + '/' + image_name)
+ # big_image = resize(image, 960, 1440)
+ # big_image = big_image.convert('L')
+ # big_image = big_image.filter(ImageFilter.SHARPEN)
+ # big_image.save(tmp_output_dir + '/' + image_name, optimize=True)
+ # os.system('pngnq -n 16 -s 1 -e .png -d "%s" -f "%s"' % (
+ # big_output_dir,
+ # tmp_output_dir + '/' + image_name,
+ # ))
+ # os.remove(tmp_output_dir + '/' + image_name)