Fix Blurry Product Images in WordPress | How to Change Product Image Size in WooCommerce

Fix Blurry Product Images in WordPress | How to Change Product Image Size in WooCommerce


Fix Blurry Product Images in WordPress | How to Change Product Image Size in WooCommerce

How to fix blurry product images in woocommerce and wordpress? How to change product image size in woocommerce. During custom wordpress theme development, sometimes woocommerce images appear blurry because for product images we need a little bit of configuration related to images. In some cases its simply the wrong settings for product image sizes. Are your WooCommerce images blurry or are you wondering why woocommerce image is 150px in size? How to fix blurry product images in WooCommerce? or how to manage WooCommerce product image sizes? How to change product image size for WooCommerce? How to customize loop product image via a hook in Woocommerce, and changing Woocommerce product image thumbnail size. So is your wordpress thumbnail blurry? Learn how to fix blurry images in woocommerce.

First of all make sure you are uploading product images that are atleast 400px in width and height. Make sure image sizes are large enough to look better on product pages. If image dimensions are good. Then try this.

Go to ‘customize’, under appearance. go to ‘woocommerce’ and then ‘product images’. Try different image size options that are available here to see if images are fixed. You can specify image width. You can use cropped images. And you can use uncropped settings. Using uncropped settings is tempting because it gives you full image that should be large enough to look good on product pages. But uncropped option throws image as is and sometimes images are not in same width and height. So using uncropped shop may display some images bigger and some smaller. These options may fix the issue but not in all cases.

Another thing that you should consider is to adjust number of images to display in a row. Less images in a row will display bigger images. More images in a row will display smaller images. Small size images will not be blurry.

Then we have image size settings. Under ‘settings’ go to ‘media’. Make sure you have set appropriate sizes for thumbnail, medium and large sizes. Because if here these images sizes are appropriate, then you will be able to change image sizes in theme. These sizes are used by wordpress when you upload an image. Image is cropped into these sizes to use later according to requirement. If these sizes are not appropriate and you are changing sizes now, then you need to regenerate thumbnails for already upload images. Use ‘Regenerate Thumbnails’ plugin or ‘Regenerate Thumbnails Advanced’ plugin.

If this also does not fix your issue, then here is something very important.

Inspect images in product pages. For me, images that are being displayed are 150px in width. These are thumbnails. If I use bigger container for images, they appear blurry because they have 150px width and height. Even though I have selected 400 by 400 size from product images width settings in customizer. Basically woocommerce is throwing small images on shop pages. Image size is restricted to 150x in width and height. Scaling up image by using less images in a row will make images blurry. 150px image will be pixilated. I want to force woocommerce to use images of large size. To do that use code that I have linked below.

Use theme file editor. Go to functions.php file and edit it. At the bottom use that code. Try medium, large or full for the image size in code. It will force woocommerce to use large image size.

This solved my problem. Everything else just failed for me. Forcing woocommerce to give me large size images fixed this issue for me. So what you have to do is to get large image size for product images to fix blurry images issue in wordpress.

Further more, have a look at article from woocommerce with title: ‘Image Sizes for Theme Developers’.

I have come across advanced problems related to this. If you want to know more about this or related topics, subscribe to the channel and hit bell icon. Also hit like button because it will help
the channel a lot.

Code
https://github.com/webstylepress/Word

Queries Solved:
Why are my WooCommerce product images blurry?
How do I improve image quality in WooCommerce?
Why are my product photos blurry?
How do I optimize WooCommerce product images?
Make all woocommerce product images the same size

Thank You!
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT

⚡Channel:    / @webstylepress  
⚡Website: https://www.webstylepress.com
⚡FaceBook: https://www.facebook.com/webstylepress
⚡Twitter: https://twitter.com/webstylepress
⚡GitHub: https://github.com/webstylepress
#woocommerce #WebStylePress #WordPress #WordPressTutorial #WordPressTraining #WordPressForBeginners #WebDevelopment #WordpressDeveloper


Content

0 -> Welcome to Webstylepress.
5.4 -> During custom WordPress theme development  sometimes woocommerce images are blurry  
10.02 -> because for product images we need a little bit  of configuration related to images in some cases  
15.72 -> it's simply the drawing settings for product  image sizes are your woocommerce images blurry  
21.48 -> or are you wondering why woocommerce image is  150 pixels in size so how to fix blurry product  
28.08 -> images in woocommerce or how to manage woocommerce  product image sizes or how to change product image  
35.22 -> size for woocommerce in this video we will look  into customizing low product image via a hook  
41.04 -> in woocommerce and changing woocommerce product  image thumbnail size but before that give this  
47.16 -> video a like subscribe to the channel if you  haven't already because I am bringing similar  
51.48 -> content on this topic okay first of all make  sure you are uploading product images that  
57.12 -> are at least 400 pixels in width and height make  sure image sizes are large enough to look better  
63.48 -> on product pages if image dimensions are good then  try this from WordPress dashboard under appearance  
72.84 -> go to customize click add woocommerce then product  images please note I am using 400 for main image  
82.92 -> width and for thumbnail image width I am using 400  as well you can try different image size options  
90.84 -> that are available here to see if images are fixed  you can specify image width you can use cropped  
98.04 -> images and you can also use uncropped image  setting using uncropped images is tempting because  
105.36 -> it gives you full image that should be large  enough to look good on product pages but uncropped  
111.48 -> image throws image as is and sometimes images are  not in same width and height so using uncropped  
118.68 -> setting shop May display some images bigger and  some smaller these options May fix the issue but  
126.06 -> not in all cases another thing that you should  consider is to adjust number of images to display  
132.12 -> in a draw for that click at Broad catalog and  adjust products per raw by changing this number
145.32 -> less images in a row will display bigger images  more images in a row will display smaller images
157.62 -> small image size will display Sharper Image
164.28 -> then we have image size settings
169.32 -> under settings click add media
175.2 -> make sure you have set appropriate sizes for  thumbnail medium and large image sizes because  
181.38 -> if here these image sizes are appropriate  then you will be able to change image sizes  
186.9 -> in theme these sizes are used by WordPress  when you upload an image image is cropped  
193.26 -> into these sizes could use later according  to requirement if in your theme these sizes  
198.66 -> were not appropriate and you are changing  image sizes now then you need to regenerate  
203.28 -> thumbnails for already uploaded images  in that case use this plugin regenerate  
209.82 -> thumbnails after you adjust image sizes from here  or use this plugin regenerate thumbnails advanced  
218.82 -> if this also does not fix your issue then here  is something very important this is my shop page  
226.92 -> showing blurry images inspect image  and you say width 150 height 150.
240.78 -> the image itself is small
245.1 -> images that are being displayed are 150  pixels in width these are thumbnails if  
251.16 -> I will use bigger container for these  images like this one images will appear  
255.72 -> blurry because they have 150 pixels  width and height even though I have  
260.58 -> selected 400 by 400 size from product  images birth settings in customizer
278.28 -> actual size of images 150 pixels by 150 pixels  but rendered size is 312 by 312 pixels basically  
288.96 -> woocommerce is throwing small images on Sharp  Pages image size is restricted to 150 pixels  
295.74 -> and width and height scaling up image by  using less images in a raw will make images  
302.4 -> blurry 150 pixels image will be pixelated so I  should force woocommerce to use images of large  
310.8 -> size to do that use this fix use theme file  editor go to functions.php file and edit it  
321.3 -> from WordPress dashboard appearance theme  file editor same functions functions.php file  
331.92 -> at the bottom of this file use this code
339.42 -> try medium large or full for the image size here
346.62 -> update file
351.36 -> reload shop page and you see images are a  little bit better now and here image size  
360.42 -> is 300 in width and 300 in height
366.54 -> let's try full
375.42 -> reload and now it's 400 pixels
386.82 -> now image size is at larger than 150 pixels  this solved my problem everything else just  
393.72 -> failed for me forcing woocommerce to give me  large size images fixed this issue for me so  
401.16 -> what you have to do is to get large image  size for product images to fix this issue  
406.74 -> get the code link from the video description  furthermore have a look at this article from  
413.22 -> woocommness search for image sizes for theme  developers and you will find it alright I have  
420.12 -> come across Advanced problems related to this  if you want to know more about this or related  
425.94 -> topics subscribe to the channel and hit Bell icon  also hit like button because it will help the  
432.3 -> channel a lot okay I hope it helped like share  subscribe and I will see you in the next video

Source: https://www.youtube.com/watch?v=yrgXZx36J_0