Opened 20 months ago
Last modified 8 months ago
#18835 new enhancement
Add filter to image_resize_dimensions( ) return values
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Media | Version: | 3.2.1 |
| Severity: | minor | Keywords: | has-patch needs-testing |
| Cc: |
Description
Requesting a filter on the values about to be returned, including access to the function's original arguments.
Use case:
Currently, any cropping happens to images always crops to the top-left corner (0,0). Want to be able to write a plugin that will allow cropping with more options (say, crop out at the middle of the image, etc).
Attachments (1)
Change History (7)
comment:1
scottconnerly — 20 months ago
If you can provide a patch, I'd be interested. The lack of a filter here is annoying and very much a bug.
comment:3
scottconnerly — 20 months ago
- Keywords has-patch added; needs-patch removed
comment:4
scottconnerly — 20 months ago
- Keywords needs-testing added
It'd be worth using compact() for the 3rd parameter to make it more readable.
comment:6
markoheijnen — 8 months ago
Is this something that can be addressed for in 3.5? Seems like it fits the focus
Note: See
TracTickets for help on using
tickets.

Found #15989 - same use case, he just proposes making it core functionality. Hoping my ticket will be approved as it is less invasive.