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