Title: New version variable image size problem
Last modified: October 27, 2018

---

# New version variable image size problem

 *  Resolved [milenyums](https://wordpress.org/support/users/ozguryaazici/)
 * (@ozguryaazici)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/new-version-variable-image-size-problem/)
 * Hello there. I have installed the new version. The dimensions of the variation
   products was 100 px. The default widget size is 100 px. there is no way to set
   this up. The variation is known as 100 px. back to the previous version, no problem.
   where to get the latest version.
 * how to fix it.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [jehad.dev](https://wordpress.org/support/users/jehaddev/)
 * (@jehaddev)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/new-version-variable-image-size-problem/#post-10822377)
 * Add this fix to functions.php:
 *     ```
       if ( ! function_exists( 'fix_single_product_image_sizes') ) {
          function fix_single_product_image_sizes() {
            $sizes = wc_get_image_size( 'woocommerce_single' );
            if ( ! $sizes['height'] ) {
              $sizes['height'] = $sizes['width'];
            }
   
        return array( $sizes['width'], $sizes['height'] );
        }
   
          add_filter( 'woocommerce_gallery_thumbnail_size', 'fix_single_product_image_sizes' );
       }
       ```
   
    -  This reply was modified 7 years, 7 months ago by [jehad.dev](https://wordpress.org/support/users/jehaddev/).
 *  Plugin Support [Yuki K a11n.](https://wordpress.org/support/users/yukikatayama/)
 * (@yukikatayama)
 * Automattic Happiness Engineer
 * [7 years, 7 months ago](https://wordpress.org/support/topic/new-version-variable-image-size-problem/#post-10823595)
 * Hi there,
 * There is a known bug where the variable images changed to 100×100 dimension. 
   Fix will be in 3.5.1. In the meantime, there is a workaround mentioned in the
   bug report here: [https://github.com/woocommerce/woocommerce/issues/21646](https://github.com/woocommerce/woocommerce/issues/21646)
 * Cheers,
    Yuki

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘New version variable image size problem’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [image size](https://wordpress.org/support/topic-tag/image-size/)
 * [variable product](https://wordpress.org/support/topic-tag/variable-product/)

 * 2 replies
 * 3 participants
 * Last reply from: [Yuki K a11n.](https://wordpress.org/support/users/yukikatayama/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/new-version-variable-image-size-problem/#post-10823595)
 * Status: resolved