Spaces:
Sleeping
Sleeping
Aditya DN commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,10 +6,10 @@ 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 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
|
| 14 |
def convert_image(image, target_format):
|
| 15 |
try:
|
|
|
|
| 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:
|