biigle / core

:large_blue_circle: Application core of BIIGLE
https://biigle.de
GNU General Public License v3.0
12 stars 16 forks source link

Improve TIFF handling #768

Open mzur opened 4 months ago

mzur commented 4 months ago

Often we have users uploading TIFFs that are not larger than the 10,000 px threshold configured in BIIGLE. They don't notice any mistake because the user upload allows them to upload any TIFF. To improve this we could:

dlangenk commented 4 months ago

What about just converting to webm/jpg/png if smaller than 10.000? That is basically just one big tile but easier to handle for some downstream tasks like the vector computation, SAM, ....

Just tiling them of course also works but is probably not needed for a 300x300 tiff 🤪

mzur commented 4 months ago

What about just converting to webm/jpg/png if smaller than 10.000?

That requires different logic as we have right now. I want to handle all images the same (whether they are remote or stored on our S3).