管理图像电子商务

发布于 2024-12-09 09:33:38 字数 236 浏览 2 评论 0原文

我正在从事网上商店项目。
我为每个产品设计我需要一张三种尺寸的图片:

  1. 480 * 480
  2. 290 * 290
  3. 200 * 200

哪个更好?

  • 要求 e-Shop 管理员上传以上所有尺寸的图片。
  • 让他上传一张尺寸为480 * 480的图片,然后通过asp.net生成其他尺寸

I am working on e-Shop project.
I my design for each product I need a picture with three sizes:

  1. 480 * 480
  2. 290 * 290
  3. 200 * 200

Which one is better ?

  • Asking e-Shop Admin to upload a picture for all above sizes.
  • Asking him to upload a picture with size 480 * 480 then generating other sizes via asp.net

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

回忆躺在深渊里 2024-12-16 09:33:38

要求您的网站管理员上传三个单独的图像只是将不必要的工作开销推给了管理员,这通常会导致他们懒得为每个产品创建和上传三个单独的图像 - 导致电子商务网站缺少图像。

您最好使用该技术,要求管理员加载单个图像并自动创建较小尺寸的图像,从而使管理员的工作更加轻松。自动化手动任务是 IT 行业的重点,如果可能的话不这样做就会违背构建这些系统的目的。

CPU 使用率实际上没有任何问题,因为您只需要在加载时生成 2 个较小的图像一次,或者根本不需要使用 CSS 来调整大小(这可能不是带宽的最佳利用)。我会在管理员上传两个较小的图像并将其存储在缓存中时创建两个较小的图像,或者在第一次请求时动态创建它们,然后将其放入缓存中。

Requiring your site admin to upload three separate images is simply pushing unnecessary work overhead onto the admin, and this generally results in them not bothering to create and upload three separate images for each product - resulting in an ecommerce site with missing images.

You're far better to use the technology to make the administrators life easier by requiring them to load a single image and automating the creation of the smaller sized images. Automating manual tasks is the whole point of the IT industry, and not doing so where possible kind of defeats the purpose of building these systems.

There's not really any issue with CPU usage as you only need to generate the 2 smaller images once at the point of loading, or not at all by using CSS to resize (this may not be optimal use of bandwidth). I'd go with creating the 2 smaller images either when it is uploaded by the admin and storing it in a cache, or creating them on the fly upon the first time it is requested and then putting it into a cache.

随波逐流 2024-12-16 09:33:38

上传所有三个图像 - 将减少 CPU 开销。然后,您可以使用处理能力来提高站点的响应速度。

Upload all three images - will reduce the CPU overhead. You can then use the processing power to enable your site to be more responsive.

栖竹 2024-12-16 09:33:38

在我看来,准备三种尺寸的图像是一个耗时的过程,因为必须为每个产品重复该过程。

生成会更好。

另一方面,只需上传一个大图像,然后使用 css class' 显示小图像可能会很有用。 (如果访问者会一直看到所有图像)

In my opinion, preparing three sizes of the image is a time consuming process because it must be repeated for every product.

generating would be better.

on the other hand just uploading a big one and then showing small images with css class' can be useful. (if the visitor will see all the images all the time)

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