#18835 closed enhancement (fixed)
Add filter to image_resize_dimensions( ) return values
| Reported by: | scottconnerly | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Media | Version: | 3.2.1 |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
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 → invalid
- Status new → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Found #15989 - same use case, he just proposes making it core functionality. Hoping my ticket will be approved as it is less invasive.