[wp-trac] [WordPress Trac] #22985: Edit thumbnail image only - loses all sub sizes in attachment meta

WordPress Trac noreply at wordpress.org
Wed Dec 19 20:00:00 UTC 2012


#22985: Edit thumbnail image only - loses all sub sizes in attachment meta
--------------------------+---------------------------
 Reporter:  lewismcarey   |       Owner:  markoheijnen
     Type:  defect (bug)  |      Status:  assigned
 Priority:  high          |   Milestone:  3.5.1
Component:  Media         |     Version:  3.5
 Severity:  critical      |  Resolution:
 Keywords:  has-patch     |
--------------------------+---------------------------
Description changed by SergeyBiryukov:

Old description:

> I have several additional image sizes in my theme. When I crop an image
> and save over only the thumbnail, all references to the various sub-sizes
> are lost and only the new thumbnail is referenced in
> _wp_attachment_metadata.
>
> Add an image to the media library.
> Output _wp_attachment_metadata.
> Edit the image (crop).
> Save only the thumbnail.
> Output the relevant _wp_attachment_metadata.
>
> This may be an issue with wp_save_image() not re-genarating subsizes from
> the original.
> I believe this to be different from Ticket #19889  as it appears to
> remove references to default sizes from media settings screen.

New description:

 I have several additional image sizes in my theme. When I crop an image
 and save over only the thumbnail, all references to the various sub-sizes
 are lost and only the new thumbnail is referenced in
 _wp_attachment_metadata.

 1. Add an image to the media library.
 2. Output _wp_attachment_metadata.
 3. Edit the image (crop).
 4. Save only the thumbnail.
 5. Output the relevant _wp_attachment_metadata.

 This may be an issue with wp_save_image() not re-genarating subsizes from
 the original.
 I believe this to be different from Ticket #19889  as it appears to remove
 references to default sizes from media settings screen.

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22985#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list