Opened 8 months ago

Last modified 8 months ago

#21959 new enhancement

No way to override the name of an image when that is being resized

Reported by: jkmassel Owned by:
Priority: normal Milestone: Awaiting Review
Component: Media Version: 3.4.2
Severity: normal Keywords: has-patch needs-codex needs-docs
Cc: jeremy.massel@…

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)

media_destination_file_name_hook.diff (707 bytes) - added by jkmassel 8 months ago.
A fix for this issue
21959.patch (559 bytes) - added by SergeyBiryukov 8 months ago.

Download all attachments as: .zip

Change History (5)

A fix for this issue

  • Cc jeremy.massel@… added

comment:2 follow-up: ↓ 3   SergeyBiryukov8 months ago

$destfilename needs to be a string, not an array. Additional information can be passed as extra arguments.

comment:3 in reply to: ↑ 2   jkmassel8 months 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!

Note: See TracTickets for help on using tickets.