Changing the image size in WooCommerce will not affect the quality of your original images. However, resizing images will only affect images quality on frontend of the site, if the new dimensions are significantly different from the original image. So, It is recommended to use high-resolution images and optimize them before uploading to ensure they are of best quality.