Product Import Export Plugin for WooCommerce facilitates you to import products along with their images into a Woocommerce website using a CSV file.
When you import images for products, WordPress dynamically regenerates thumbnails of the images of that product. However, sometimes even if the full-size images are uploaded, the regeneration of the product thumbnails results in an error resulting in blank thumbnails.
Image thumbnail regeneration failure can due to any of the following reasons:
- Conflict with any existing image optimizer plugin
- ImageMagick and limitations in hosting
- Dimensions or size of the image
Conflict with any existing image optimizer plugin
The regeneration of thumbnails, while importing using the Product Import Export plugin can result in an error due to conflict with any existing image optimizer plugin.
When importing an image, if any image optimizer plugin is active, the plugin may try to compress and optimize the images and reduce its size. This prevents the regeneration of thumbnails.
If you are using any image optimizer plugin, and if the error in thumbnail regeneration is due to this conflict, it can be avoided by deactivating the plugin while the import and trying again the import.
ImageMagick and Limitation in Hosting
When this is the case, the image regeneration issue can be resolved by adding the line SetEnv MAGICK_THREAD_LIMIT 1 to the top of the .htaccess file.
ImageMagick uses multiple threads to process the images as fast as possible. But using multiple threads can cause the error of image thumbnail regeneration because of the limitations in hosting that prevents you from running multi-thread tasks.
This can be avoided by limiting ImageMagick to a single thread. The above line sets the number of threads for ImageMagick to 1 and will successfully generate thumbnails for the images.
Dimensions or Size of the Image
If the size or dimensions of the image are too small or too large, WordPress fails to generate thumbnails for that image or the thumbnails generated will be pixelated or blurry. This can be overcome by making sure that the images being imported are of optimal size and dimensions.
To know more about Product Import Export plugin visit our product page.