[wp-trac] [WordPress Trac] #34223: Core support for image regeneration

WordPress Trac noreply at wordpress.org
Tue Jul 5 10:19:21 UTC 2016


#34223: Core support for image regeneration
-----------------------------+------------------------------
 Reporter:  krogsgard        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Media            |     Version:  4.3
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  ui
-----------------------------+------------------------------

Comment (by nicasi):

 At the moment the urls of the images are inserted in the post with the
 dimensions appended (eg ...uploads/example-113x200.jpg) if I'm not
 mistaken. So after an image regeneration the urls with the old dimensions
 are still in the wp_posts table pointing to the old dimensions.

 It might be an idea to decouple this a bit and retrieve the images like
 this: ...uploads/example.jpg?thumb or example.jpg?medium. (The sizes
 should get stored somewhere too. thumb = 200x200, medium = 450x450 etc)
 The images would still be regenerated but the front side would
 automatically reflect the new image sizes after regeneration without
 needing a complex search and replace in wp_posts.

 Not sure if this is a good or a bad idea...

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


More information about the wp-trac mailing list