Make WordPress Core

Opened 11 years ago

Last modified 6 years ago

#27860 new feature request

Media Upload: Incorrect renaming increment for retina files

Reported by: phillbooth's profile phillbooth Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.9
Component: Upload Keywords: needs-patch
Focuses: administration Cc:

Description (last modified by SergeyBiryukov)

If a file is uploaded myimgage.png and then a second image is uploaded with the same name the file is renames myimgage.png to myimgage1.png this is fine.

However if a Retina image is uploaded using the Apple retina standard @2x i.e. myimage@2x.png

The increment is myimage@2x1.png this is not correct and should be myimage1@2x.png

Should be myimage[[prefex]]@2x.png NOT myimage@2x[[prefex]].png

Change History (4)

#1 @UmeshSingla
11 years ago

  • Keywords dev-feedback added

Wordpress Media Library doesn't handles retina images naming convention, as far as I know. You can handle it with wp_handle_upload_prefilter probably.

#2 @SergeyBiryukov
11 years ago

  • Description modified (diff)

#3 @wonderboymusic
10 years ago

  • Keywords needs-patch added; dev-feedback removed
  • Milestone changed from Awaiting Review to Future Release
  • Type changed from defect (bug) to feature request

Interesting - I could see this being a thing at some point.

#4 @chriscct7
9 years ago

  • Component changed from Media to Upload
  • Focuses administration added
Note: See TracTickets for help on using tickets.