Skip to content

Commit

Permalink
use quality='keep' instead of quality='95'
Browse files Browse the repository at this point in the history
  • Loading branch information
jokober authored Oct 18, 2023
1 parent 827f383 commit 88782b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sahi/slicing.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def _export_single_slice(image: np.ndarray, output_dir: str, slice_file_name: st
image_pil = read_image_as_pil(image)
slice_file_path = str(Path(output_dir) / slice_file_name)
# export sliced image
image_pil.save(slice_file_path, quality=95)
image_pil.save(slice_file_path, quality='keep')
image_pil.close() # to fix https://github.com/obss/sahi/issues/565
verboselog("sliced image path: " + slice_file_path)

Expand Down

0 comments on commit 88782b8

Please sign in to comment.