Firebase存储图像的最佳选择

发布于 2025-02-08 04:16:55 字数 308 浏览 1 评论 0原文

我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不知所踪 2025-02-15 04:16:55

我目前正在研究一个网站,该网站处理创建自定义图像并保存图像以在这些新图像中。我使用云。我还没有为此付费,它也有一个强大的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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文