Portrait format. #654
-
Hi. I try to make simple reader for *.gcs files on java. How do you save images? Old version used base64. But I can't decode images from new versions. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The data inside the base64 encoding is the image format, which depends on what the user used when they added the image. GCS supports WEBP, PNG, JPEG, GIF, BMP, WBMP, and ICO as inputs. If the image isn't the correct size, it will be rescaled and turned into a WEBP, otherwise it will be left as-is. |
Beta Was this translation helpful? Give feedback.
-
So. Do all versions use base64? |
Beta Was this translation helpful? Give feedback.
-
Yes, I believe so. There may have been some special case for the default portrait, but I don't currently have the spare time to check. The source is available to look at if you're interested, though. |
Beta Was this translation helpful? Give feedback.
The data inside the base64 encoding is the image format, which depends on what the user used when they added the image. GCS supports WEBP, PNG, JPEG, GIF, BMP, WBMP, and ICO as inputs. If the image isn't the correct size, it will be rescaled and turned into a WEBP, otherwise it will be left as-is.