jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Photon: Not Resizing to the new WooCommerce Thumbnail

Open tmmbecker opened this issue 8 years ago • 8 comments

Woocommerce changed the way product thumbnail images are handled in version 3.3, adding a new image size that is by default 100x100px. Photon doesn't pay attention to this change.

If Photon is deactivated, the product gallery thumbnails show as square:

screen shot on 2018-04-18 at 11_20_42

If Photon is active, the thumbnails show as rectangles the way they used to before Woocomerce changed: screen shot on 2018-04-18 at 11_21_28

Internal ref: 1005403-zen, 1063044-zen

This is reproducible on any site. Per @jeherve, the problem appears to be linked to how some themes can declare support for wc-product-gallery-slider

Originally reported in 1928-gh-jpop-issues

tmmbecker avatar Apr 18 '18 15:04 tmmbecker

Original user is requesting an update in 1317075-zen

interlineae avatar Aug 01 '18 08:08 interlineae

Original user has requested another update in 1581610-zen

macmanx2 avatar Nov 20 '18 18:11 macmanx2

Also reported in 1802679-zen

madeincosmos avatar Feb 14 '19 18:02 madeincosmos

Also reported in #30404

jeherve avatar May 03 '23 07:05 jeherve

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 1005403-zen
  • [ ] 1063044-zen
  • [ ] 1317075-zen
  • [ ] 1581610-zen
  • [ ] 1802679-zen
  • [ ] 6254100-zen

github-actions[bot] avatar May 03 '23 07:05 github-actions[bot]

Sharing @ash1eygrace 's notes and steps to replicate from #30404 here:

Quick summary

For WooCommerce sites, a problem arises when both thumbnail crop settings and Jetpack's Image CDN are enabled. When the thumbnail crop ratio is set to 1:1 in Customizer → WooCommerce → Product Images, the cropping fails to maintain the desired ratio when Jetpack's Image CDN is active.

Deactivating the Image CDN solves the issue.

Steps to reproduce

  1. Set up an Atomic site on WordPress.com or create a self-hosted WordPress site.
  2. Install and activate WooCommerce.
  3. In Customizer, navigate to WooCommerce → Product Images and set the image crop ratio for thumbnails to 1:1.
  4. Create a product and add portrait-sized images (height greater than width) to the Product Gallery in the product.
  5. Install and activate Jetpack, then enable the Image CDN module at {siteaddress.com}/wp-admin/admin.php?page=jetpack_modules

The image thumbnails on the product pages should maintain a perfect square crop (1:1) based on the settings in Customizer. Instead: The image thumbnail cropping does not retain the 1:1 ratio when Jetpack's Image CDN is enabled. Instead, the images just display as the default image ratio without honoring the crop:

screenshot

cuemarie avatar May 03 '23 17:05 cuemarie

📌 SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain

  • Tested on Atomic – Replicated

📌 FINDINGS/SCREENSHOTS/VIDEO

  • Replicated following the steps to replicate in previous comment.

Screenshots/Recordings

Markup on 2023-05-03 at 10:18:13

Markup on 2023-05-03 at 10:19:17

📌 ACTIONS

  • Assigned to Other (Jetpack)

cuemarie avatar May 03 '23 17:05 cuemarie

Reported in 6254100-zd-woothemes

jorpdesigns avatar May 04 '23 07:05 jorpdesigns