• Hello,

    I have come across a really odd issue with the product images in a wooCommerce site that i have just built out. It seems as if wooCommerce is substituting out the product images i have posted if the image size is over 100kB. I have a picture of the issue here (i can’t link to the site because it’s password protected).

    the image of the problem

    So here is the kicker, all the images are the exact same width and height. I exported them from Illustrator from a set art board, so they are all 1404 x 854. The only difference from one image to the next is the image size, if it’s over 100kB, the image is substituted for the 150×150 thumbnail.

    In the code, the offending images have “-150×150.jpg” tacked onto the end of them (the name that is called for the image asset), while the image that was uploaded to the featured image of the product (or category in the case of the picture i linked to) was not the thumbnail image but the original images that are in use on the whole site.

    So my guess is that there is a function that is dynamically substituting out any image over 100kB for the thumbnail to make sure people aren’t slamming their sites with images too large for fast loading, like a fail safe for people that don’t know any better. But for the life of me, i can’t seem to find that code.

    Any ideas out there?

  • The topic ‘Dynamic Image Substitution in WooCommerce’ is closed to new replies.