Spaces:
Running on Zero
Running on Zero
Commit ·
73d5259
1
Parent(s): 28081ca
minor
Browse files
app.py
CHANGED
|
@@ -361,7 +361,7 @@ def check_image(img_path):
|
|
| 361 |
ext = os.path.splitext(img_path)[1].lower() or "(no extension)"
|
| 362 |
return (f"Could not read {ext} as an image. Supported formats: "
|
| 363 |
f"TIFF / OME-TIFF (8/16/32-bit, stacks, multi-channel), PNG, JPG, and other formats suported by tiffile. "
|
| 364 |
-
f"
|
| 365 |
|
| 366 |
if w > MAX_SIZE or h > MAX_SIZE:
|
| 367 |
return (f"Image is {w}×{h}, larger than the {MAX_SIZE}×{MAX_SIZE} limit. "
|
|
|
|
| 361 |
ext = os.path.splitext(img_path)[1].lower() or "(no extension)"
|
| 362 |
return (f"Could not read {ext} as an image. Supported formats: "
|
| 363 |
f"TIFF / OME-TIFF (8/16/32-bit, stacks, multi-channel), PNG, JPG, and other formats suported by tiffile. "
|
| 364 |
+
f"Please export to TIFF/PNG/JPG (e.g. from ImageJ/Fiji) first.")
|
| 365 |
|
| 366 |
if w > MAX_SIZE or h > MAX_SIZE:
|
| 367 |
return (f"Image is {w}×{h}, larger than the {MAX_SIZE}×{MAX_SIZE} limit. "
|