#18835 closed enhancement (fixed)
Add filter to image_resize_dimensions( ) return values
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 3.4 | Priority: | normal |
| Severity: | minor | Version: | 3.2.1 |
| Component: | Media | Keywords: | |
| Focuses: | 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 (10)
#2
@
15 years ago
If you can provide a patch, I'd be interested. The lack of a filter here is annoying and very much a bug.
#7
@
12 years ago
- Keywords has-patch needs-testing removed
- Resolution set to invalid
- Status changed from new to closed
The filter image_resize_dimensions was added in 3.4, so you're good to go here. Closing out.
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.