Opened 13 years ago
Closed 13 years ago
#23161 closed feature request (duplicate)
Filters for the image crop position
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 3.5 |
| Component: | Media | Keywords: | has-patch |
| Focuses: | Cc: |
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.
media.php