是否可以在 Firebase 存储图像 url 上应用 GCS 样式的图像转换?
Is it possible to apply GCS-style image transformations on Firebase Storage image urls?
据我了解,Firebase 存储是建立在 Google 云存储之上的。因此,是否可以在 Firebase 存储图像 url 上应用 GCS 样式的图像转换?
例如,是否可以执行以下操作:
将图像大小调整为 32 像素(保留纵横比):
http://lhx.ggpht.com/randomStringImageId
收件人:
http://lhx.ggpht.com/randomStringImageId=s32
Code/Documentation 来源:https://cloud.google.com/appengine/docs/python/images/
是的,使用 Google App Engine get_serving_url()
调用是 100% 可能的,尽管您必须在 GAE 中设置端点才能这样做。
如果您想要无后端解决方案,我建议您查看 ,其中显示了如何使用 Cloudinary 或 Imgix 进行这些转换。
据我了解,Firebase 存储是建立在 Google 云存储之上的。因此,是否可以在 Firebase 存储图像 url 上应用 GCS 样式的图像转换?
例如,是否可以执行以下操作:
将图像大小调整为 32 像素(保留纵横比):
http://lhx.ggpht.com/randomStringImageId
收件人:
http://lhx.ggpht.com/randomStringImageId=s32
Code/Documentation 来源:https://cloud.google.com/appengine/docs/python/images/
是的,使用 Google App Engine get_serving_url()
调用是 100% 可能的,尽管您必须在 GAE 中设置端点才能这样做。
如果您想要无后端解决方案,我建议您查看