[wp-trac] [WordPress Trac] #48194: Unregistered image sizes used for IMG tag "srcset"

WordPress Trac noreply at wordpress.org
Fri Jan 10 07:46:04 UTC 2020


#48194: Unregistered image sizes used for IMG tag "srcset"
--------------------------+------------------------------
 Reporter:  galbaras      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by galbaras):

 Hi @joemcgill ,

 I use a different plugin to regenerate thumbnails (Image Regenerate &
 Select Crop), after having problems with the one you've suggested and
 getting no support. Alas, no WP-CLI (shared hosting).

 At my request, the author of IRSC (@iulia-cazan) added a feature to delete
 orphaned image meta, which I've used since starting this ticket.

 As for assumptions, plugins aren't perfect, and people sometimes make
 changes outside of WordPress, so turns out this assumption is dangerous.

 Since WordPress already runs cron jobs, this image meta audit can be very
 gradual and run monthly or less, but I still think it will be good
 practice.

 Honestly, I've had a lot to do with image handling and optimisation in
 WordPress lately and this module may need some rethinking. For example,
 old embeds lack the "wp-image-XXXX" class, and there's nothing in
 WordPress to bring them up to date, so no `srcset` :(

 I've written a plugin for doing this last bit, and am happy to share my
 code (works great, but will need some serious cleanup).

 But this isn't the only problem. Thumbnail regeneration must be integrated
 with image optimisation, image file renaming and other functions, and
 WordPress doesn't facilitate this well enough, it turns out, so the plugin
 authors have to collaborate directly, rather than work through a good
 medium.

 Cheers,
 Gal

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


More information about the wp-trac mailing list