Adityadn commited on
Commit
a243de7
·
verified ·
1 Parent(s): f374dbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -5,7 +5,11 @@ import os
5
  gr.themes.Soft()
6
 
7
  # Ambil daftar format gambar yang didukung oleh Pillow
8
- supported_formats = sorted(Image.SAVE.keys())
 
 
 
 
9
 
10
  def convert_image(image, target_format):
11
  try:
 
5
  gr.themes.Soft()
6
 
7
  # Ambil daftar format gambar yang didukung oleh Pillow
8
+ supported_formats = sorted(Image.SAVE.keys()) or ['BLP', 'BMP', 'BUFR', 'DDS', 'DIB', 'EPS',
9
+ 'GIF', 'GRIB', 'HDF5', 'ICNS', 'ICO', 'IM',
10
+ 'JPEG', 'JPEG2000', 'MPO', 'MSP', 'PALM', 'PCX',
11
+ 'PDF', 'PNG', 'PPM', 'SGI', 'SPIDER', 'TGA', 'TIFF',
12
+ 'WEBP', 'WMX', 'XBM']
13
 
14
  def convert_image(image, target_format):
15
  try: