• Resolved Gal Baras

    (@galbaras)


    This plugin adds two new image sizes, instead of relying on the WooCommerce ones, and that’s a waste of space, without significant benefit.

    It would be great to use the woocommerce_gallery_thumbnail and woocommerce_thumbnail sizes, given that they are already present and this would be consistent with the site’s overall design.

    Of course, the ultimate solution would be to provice a setting for each size, which offers all the registered sizes, and a new one, if none suits. These settings should default to the above WC sizes on new installations.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hello Gal,

    It was a difficult decision. There are two sizes: 64px width, auto height and 300px width, auto height. Both without crop.

    The size of 64px has benefits. This size appears in live suggestions. The users don’t have to download big images for every displaying live suggestions.

    The second size is actually worth rethinking. I will consider replacing it via woocommerce_thumbnail or standard WooCommerce medium size. Unfortunately, these sizes can be cropped and I want to avoid it.

    I see several ways to the performance I will considerin in future plugin releases:
    1. Build new sizes only when user display images in suggestions or display the Details box.
    2. Use standard WordPress medium size, when it has 300px width.
    3. Use woocommerce_thumbnail if it has 300px width and it’s not cropped.

    What do you think about it?

    Best
    Damian Góra

    Thread Starter Gal Baras

    (@galbaras)

    Hello Damian,

    Reducing the site of an image from 100×100 (typical woocommerce_gallery_thumbnail) to 64×64 really doesn’t save much. In my particular case, the list image would be 64×134 (8,576 pixels), which is even closer to 10,000.

    So I still think the smaller size is unnecessary.

    Your suggestions are great, and thank you for thinking about it. There’s also another option, which is to use the core WordPress function wp_get_attachment_image(), which creates responsive image markup. This way, it will give the browser a few options, and the browser will choose the best one for the space available, while considering screen resolution, for example.

    You see, on a double-density display, 64×134 is not the right size. The right size is 128×268, because the screen density is double. 100×100 would actually look better.

    My thinking is this: if the sizes are good enough for WooCommerce, they should be good enough for WooCommerce addons, and developers should be able to handle this type of setup with best image size settings and optimal CSS.

    You actually don’t have to do this work at all ??

    Cheers,
    Gal

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unnecessary image sizes’ is closed to new replies.