[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
Fri Jul 17 21:23:35 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):

 Replying to [comment:2 obenland]:
 > Did you test it in the Customizer or the Settings version?
 I originally only tested in the customizer, tested just now via settings,
 the same results where `lego-minifigure-catalog-icon-512.png` was the
 original 512 x 512 file, this just as my previous example above was/is a
 new file that was not previously in the media library, a fresh upload:

 {{{
 -rw-rw-r--  1 netweb staff  20K Jul 18 07:17 copy-lego-minifigure-catalog-
 icon-512-150x150.png
 -rw-rw-r--  1 netweb staff  25K Jul 18 07:17 copy-lego-minifigure-catalog-
 icon-512-180x180.png
 -rw-rw-r--  1 netweb staff  28K Jul 18 07:17 copy-lego-minifigure-catalog-
 icon-512-192x192.png
 -rw-rw-r--  1 netweb staff  43K Jul 18 07:17 copy-lego-minifigure-catalog-
 icon-512-270x270.png
 -rw-rw-r--  1 netweb staff  50K Jul 18 07:17 copy-lego-minifigure-catalog-
 icon-512-300x300.png
 -rw-rw-r--  1 netweb staff 2.6K Jul 18 07:17 copy-lego-minifigure-catalog-
 icon-512-32x32.png
 -rw-rw-r--  1 netweb staff  39K Jul 18 07:17 copy-lego-minifigure-catalog-
 icon-512-512x270.png
 -rw-r--r--  1 netweb staff  76K Jul 18 07:17 copy-lego-minifigure-catalog-
 icon-512.png
 -rw-rw-r--  1 netweb staff  20K Jul 18 07:17 lego-minifigure-catalog-
 icon-512-150x150.png
 -rw-rw-r--  1 netweb staff  50K Jul 18 07:17 lego-minifigure-catalog-
 icon-512-300x300.png
 -rw-rw-r--  1 netweb staff  39K Jul 18 07:17 lego-minifigure-catalog-
 icon-512-512x270.png
 -rw-rw-r--  1 netweb staff  76K Jul 18 07:17 lego-minifigure-catalog-
 icon-512.png
 }}}

 Replying to [comment:2 obenland]:
 > I wouldn't be surprised if in the Customizer they duplicate it to not
 stomp on the original image once it was set as a header/background/site-
 icon.
 Per the above it's not isolated to the customizer.

 Replying to [comment:2 obenland]:
 > I'd also have to find out if the media modal passes on whether the file
 was just uploaded or was pre-existing, so the cause could also be a lack
 of information.
 I think your onto something here, thanks for taking a look :)

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


More information about the wp-trac mailing list