ruuvi / com.ruuvi.station.webui

Ruuvi webUI
BSD 3-Clause "New" or "Revised" License
4 stars 3 forks source link

Check image size and format limitations in app #429

Closed markoaamunkajo closed 2 months ago

markoaamunkajo commented 3 months ago

Description:

Check image size and format limitations in app

markoaamunkajo commented 3 months ago

640heif - blocked 1280 heif - blocked 1920 heif - blocked heic 1920x1280 - blocked iOS proraw_max - blocked iOS max - blocked iOS proraw_12mp - blocked jpg 1920x1280 jpg 6720x4480 jpg 8974x6434 jpg 2400x1720 jpg 1920x455 jpg 8192x2932 jpg 8268x1960 gif animation (only still image supported) png 2400x1720 tiff 2400x1720 - NO (gets stuck in uploading) webp 1920x1280

markoaamunkajo commented 3 months ago

@io53 should we be able to support few more image formats? Check the comment about TIFF, for me file upload never finished so I expect an error happened.

io53 commented 3 months ago

Image format depends on the browser in the current implementation. For example in safari both TIFF and HEIC works. Supporting more would require us to use some image library which seem to be a bit overkill for our use. I added an error toast if it fails to convert the image to jpg.

markoaamunkajo commented 3 months ago

Checked also language file, all good.