[wp-trac] [WordPress Trac] #46155: Responsive images (srcset) not working on cropped files.

WordPress Trac noreply at wordpress.org
Thu Jan 31 03:22:46 UTC 2019


#46155: Responsive images (srcset) not working on cropped files.
-------------------------------+------------------------------
 Reporter:  olgri              |       Owner:  joemcgill
     Type:  defect (bug)       |      Status:  assigned
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:
 Severity:  major              |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by joemcgill):

 * keywords:   => reporter-feedback
 * owner:  (none) => joemcgill
 * status:  new => assigned


Comment:

 Hi @olgri. It's possible that `srcset` is not added to an image if there
 are no other image sizes with the same aspect ratio as the custom size or
 crop that has been selected. This is intentional because `srcset` is meant
 to give browsers the ability to load the correct file based on the display
 density and layout size of an image, so each source in a `srcset` list
 should be different dimensions of the same crop/aspect ratio.

 Is it possible that this is what is happening in your case?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46155#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list