Firebase存储图像的最佳选择
我正在使用Firebase构建个人摄影作品集,我不确定托管图像的方式是最有效 /最具成本效益的方式。
目前,我将网站托管在Firebase上,每次加载页面时都可以从存储桶访问图像。对我自己的优惠,因为它使管理更加容易,并且随着更多图像的添加到存储桶中,该页面即时生成。
大多数站点是指图像的Firebase存储空间,但是我的可以是5MB+,其中40多个。我已经想过要添加CDN,但我不确定我是否会为此提供流量。
但是,我考虑过将图像添加到Angular页面的资产中并将其全部放置在托管中,以免进行Firebase存储调用。
有什么最佳实践方法吗?
I'm building a personal photography portfolio using firebase and I am not sure on which way of hosting the images is the most efficient / cost effective.
Currently I have the website hosted on firebase with the images being accessed from a storage bucket every time the page is loaded. Preferential for myself as it makes managment easier and the page generates on the fly as more images are added to the bucket.
Most sites refer to the firebase storage for images, but mine can be 5MB+ and there are over 40 of them. I have thought of adding a CDN but I'm not sure I will have the traffic for that.
However, I have considered just adding the images to the assets of the Angular page and putting them all in hosting, so that no firebase storage calls are made.
Is there a best practice method for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我目前正在研究一个网站,该网站处理创建自定义图像并保存图像以在这些新图像中。我使用云。我还没有为此付费,它也有一个强大的API选项可以编辑图像。
有了这个
I've currently working on a website that deals with creating custom images and saving images to go within these new ones. I use Cloudinary. I've not had to pay for it yet and it has a powerful API option to be able to edit the image too.
With this you can upload them and just call the link to load then I'm and their is also a angular package too