mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-08 05:47:07 +09:00
826 B
826 B
Middleware
Middleware supports following formats of images:
- png
- jpg
- jpeg
- webp
- ico
- svg
- gif
-
Currently, if we want to get image with size > 1920, we take original image, not resized. So it leads to a case, when images like heic and ico are returned in original format. But in case client asked for image with size < 1920, then heic is decoded as jpeg and ico as png.
-
SVG image is saved as usual file, but we return it as image in gateway to support SVG icons for objects. Also for SVG file we create image block, despite the fact, that it's saved as file.
-
All images are saved with following structure in DAG
- Original
- Small
- Thumb
- Exif
- Large
Desktop
- png
- jpg
- jpeg
- webp
- svg
- gif
IOS
- png
- jpg
- jpeg
- bmp
- tiff
- gif
- ico
- cur
- xbm