[wp-trac] [WordPress Trac] #33011: Uploading a 512 x 512 site icon creates a duplicated image in the media library

WordPress Trac noreply at wordpress.org
Tue Jul 21 04:20:44 UTC 2015


#33011: Uploading a 512 x 512 site icon creates a duplicated image in the media
library
----------------------------+-----------------------
 Reporter:  stuartshields   |       Owner:  obenland
     Type:  enhancement     |      Status:  assigned
 Priority:  normal          |   Milestone:  4.3
Component:  Administration  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  dev-feedback    |     Focuses:
----------------------------+-----------------------

Comment (by netweb):

 Here's my take with the caveat I've not looked into if this functionality
 happens in other parts of the media library when uploading files:

 Pretty much if I upload a file, per my last example `lego-minifigure-
 catalog-icon-512.png`, I'd then expect some thumbnails be generated based
 on the intended use case of the file I'm uploading, in this case we're
 wanting some square images, so generate the default base thumbnails,
 150x150, 300x300, 512x270, now we need those additional square thumbnails,
 generate the 32x32, 180x180, 192x192, and 270x270 thumbnails, for a total
 of 1 original image and 7 thumbnails, totalling 8 images.

 Rather than that above, in the current state we have 12 image files, of
 which 4 are duplicates.

 This is the list of files that I would have expected to exist after
 uploading an image to be used as a site icon:
 {{{
 lego-minifigure-catalog-icon-512.png
 lego-minifigure-catalog-icon-512-32x32.png
 lego-minifigure-catalog-icon-512-150x150.png
 lego-minifigure-catalog-icon-512-300x300.png
 lego-minifigure-catalog-icon-512-512x270.png
 lego-minifigure-catalog-icon-512-180x180.png
 lego-minifigure-catalog-icon-512-192x192.png
 lego-minifigure-catalog-icon-512-270x270.png
 }}}

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


More information about the wp-trac mailing list