Make WordPress Core

Opened 6 weeks ago

Last modified 6 weeks ago

#58137 new defect (bug)

WP creates unnecessary "cropped-"[filename] icon file

Reported by: thomask's profile thomask Owned by:
Milestone: 6.3 Priority: normal
Severity: normal Version:
Component: Media Keywords: needs-patch
Focuses: Cc:


When you setup web icon, it always creates "cropped-"[filename] icon file, even when you upload precisely 512×512 png file, so that the new file is exact copy.

(and btw it is not optimal that for icon you have to go to customizer and for logo you have to go to site editor. IMO both should be logically defined on options-general.php admin screen, where is the site title and description and then as a block in site editor you could change the logo as well).

Change History (3)

This ticket was mentioned in Slack in #core-media by antpb. View the logs.

6 weeks ago

#3 @antpb
6 weeks ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 6.3

Thanks for the report!

I found some further weirdness in my testing. If you remove the icon using the remove button and select the source 512x512 image again, it makes ANOTHER copy. You can repeat this process a bunch of times and each will result in another cropped copy made.

@joedolson mentioned :
Two things: 1) should be able to skip cropping if the image has the right dimensions, 2) should only create a cropped version once.

Moving to 6.3 to keep visibility on this and work toward a resolution.

Note: See TracTickets for help on using tickets.