Opened 14 years ago
Closed 14 years ago
#23161 closed feature request (duplicate)
Filters for the image crop position
| Reported by: | sergej.mueller | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
For a adjustable assignment of the crop start position.
Usage to make all crops start at (0,0):
add_action(
'init',
'set_image_crop_starts'
);
function set_image_crop_starts() {
add_filter(
'image_resize_dimensions_crop_start_x',
function() {
return 0;
}
);
add_filter(
'image_resize_dimensions_crop_start_y',
function() {
return 0;
}
);
}
Attachments (1)
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
media.php