• Resolved Miles

    (@mpfefferle)


    I want to be able crop a product image and have it update in my store gallery.

    Currently, if I edit a product image and crop the thumbnail, the WordPress-generated thumbnail gets updated — but not the thumbnail generated by Woocommerce (which is what’s used in the Store/gallery).

    I’ve been searching all over but haven’t found a fix.

    This plugin is the closest remedy I’ve found, but I need to be able to manually crop an image (which this doesn’t allow): https://wordpress.org/plugins/image-regenerate-select-crop/

    Note:
    My WP thumbnails (settings>media) are currently set to the same dimensions (250 x 250) as my Woo store thumbnails (Appearance>Customize>Woocommerce>Product Images). I’ve changed this back and forth and it doesn’t seem to be a factor.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Often your theme and or the settings under Settings > Media can control that size. It really depends on the theme. There can also be settings inside Appearance > Customizer > WooCommerce > Product Images and see if anything is in there. You have the option to crop there, 1:1 ratio and then depending on your theme, your gallery images should take. But everything theme is different.

    You also have the ability to regen inside WooCommerce. Go to WooCommerce > Status > Tools and scroll down a bit. You can regen there as well if nothing is in Customizer.

    You may want to look at the theme and what it has set for those gallery thumbs. Is it set to 250? Is it set in Media settings. A little digging will tell ya.

    Thread Starter Miles

    (@mpfefferle)

    I don’t think I explained this well enough. The thumbnail sizes are fine — I have no problem updating the size of the thumbnail. The problem seems to be when the thumbnail ‘doesn’t look good’ and I want to get a different crop of the image. Using the image editor, I crop the thumbnail, but the thumbnail shown in the shop gallery does not update. At first I though it was just a cache issue, but it looks like cropping the thumbnail only updates the WordPress media thumbnail, not the Woocommerce thumbnail.

    Other than replacing the actual Woocommerce thumbnail file via FTP, I’m not sure how else to edit this.

    Got it. It may be me, tequila has a weird effect on me.

    It would be much easier to help if we had a URL to visually see what you’re seeing. Then we could advise a bit better.

    So are they blurry? Are the photos all different sizes? They need to be the same size.

    Thread Starter Miles

    (@mpfefferle)

    This is the shop gallery:
    https://staging.dereknielsen.com/store-gallery/

    Specifically, I’m trying to edit the thumbnail of this product (2nd row, 1st column of the gallery):
    https://staging.dereknielsen.com/gallery/animals/alpha-male/
    As you can see in the gallery thumbnail, the subject’s face is cut off.

    When I edit image and crop the thumbnail, I get this (which is what I want):
    https://staging.dereknielsen.com/wp-content/uploads/2019/10/Alpha-male-48in-e1589146374745-250×250.jpg?v=1589146381

    But the Woocommerce gallery is still using this:
    https://staging.dereknielsen.com/wp-content/uploads/2019/10/Alpha-male-48in-250×250.jpg?v=1589145996

    I’m curious of your theme author has added resize code snippets to crop the photos. Are you able to check the functions file or reach out to them to ask them?

    I think it’s going to be very difficult getting rectangular images to get right. Know what I mean?

    I’d check with the developer to see if they’ve added what’s called image resize. The snippet looks like this

    
    add_image_size( 'custom-size', 220, 180 ); // 220 pixels wide by 180 pixels tall, soft proportional crop mode
    
    
    Plugin Support Tseten a11n

    (@tibetanitech)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to crop gallery thumbnails’ is closed to new replies.