#21959 closed enhancement (wontfix)
No way to override the name of an image when that is being resized
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.4.2 |
Component: | Media | Keywords: | needs-docs needs-refresh |
Focuses: | Cc: |
Description
The most obvious solution is to add a hook to allow the destination file name to be modified.
The solution attached gives pretty much all the information you could possibly want to modify the filename as you might need to.
Attachments (2)
Change History (8)
#2
follow-up:
↓ 3
@
12 years ago
$destfilename
needs to be a string, not an array. Additional information can be passed as extra arguments.
#3
in reply to:
↑ 2
@
12 years ago
Replying to SergeyBiryukov:
$destfilename
needs to be a string, not an array. Additional information can be passed as extra arguments.
Ah interesting. Thanks for the info!
#4
@
11 years ago
- Keywords needs-refresh close added; has-patch needs-codex removed
As of 3.5, the code the patch modifies has been deprecated.
If this is still something you'd like to pursue, I suggest looking at the _save()
methods in WP_Image_Editor_GD
and WP_Image_Editor_Imagick
as a starting place.
#5
@
10 years ago
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed
image_make_intermediate_size
= "Filter the name of the saved image file."
A fix for this issue