Website Building » WooCommerce » Where are WooCommerce product images stored?

Where are WooCommerce product images stored?

Last updated on September 24, 2022 @ 10:06 pm

WooCommerce stores product images in a variety of places, depending on the product type and image size. Product images can be stored in the WooCommerce database, in a separate image file on the server, or in a third-party image hosting service.

In the WooCommerce database, product images are stored in the products table. Each product has an image field that stores the image filename and size.

The image field also stores a unique ID that is used to link the image to the product in the shop.

PRO TIP: If you are not careful, it is easy to store your WooCommerce product images in the wrong place. Make sure that you store them in a safe and secure location, such as a password-protected folder.

If a WooCommerce product image is stored in a separate file on the server, the file will be stored in the wc-images folder inside the WooCommerce root folder. The file’s name will be the same as the product’s slug (the main product title).

The file’s size will be the product’s thumbnail size, in bytes.

If a WooCommerce product image is stored in a third-party image hosting service, the image will be stored in the service’s public folder. The file’s name will be the same as the product’s slug, with a .

jpg extension. The file’s size will be the product’s thumbnail size, in bytes.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.