[wp-trac] [WordPress Trac] #64978: Lightbox shows cropped gallery image, instead of full-sized image

WordPress Trac noreply at wordpress.org
Sun Mar 29 20:27:32 UTC 2026


#64978: Lightbox shows cropped gallery image, instead of full-sized image
--------------------------+-----------------------------
 Reporter:  heathenstorm  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Gallery       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Environment
 * WordPress 7.0 RC2 installation
 * Minimum install. Default 2025 theme with "Afternoon" styling.

 Steps to reproduce
 * Create a gallery with multiple images of different aspect ratios
 * Crop Image to Fit: True
 * Aspect Ratio: Original
 * Publish
 * Gallery should appear on new post with cropped images

 Bug
 * Clicking on image in post causes Lightbox to pop up
 * The image within the lightbox is still cropped
 * Lightbox image should be the original image, uncropped

 Example of bug:
 https://blog.heathenlab.net/2026/03/29/gallery-test/

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64978>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list