0

I am trying to save a image using tiles and image_slicer. The default format is PNG, but I need to save as JPG and whent I try that I receive the error below.

KeyError: 'JPG'

I followed the documentation

This is my code:

tiles = image_slicer.slice(path+image_file_name, 4, save=False)
    image_slicer.save_tiles(tiles, prefix='slice_'+names_images, format='JPG', directory='../images/mar2020/selected/resized/')
aluiz
  • 63
  • 5

1 Answers1

1

Looks like the documentation is wrong. Try to use jpeg instead of jpg (case insensitive).

source

xSparfuchs
  • 132
  • 7