Opened 4 months ago
Closed 4 months ago
#23161 closed feature request (duplicate)
Filters for the image crop position
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch |
| 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)
sergej.mueller — 4 months ago
comment:1
SergeyBiryukov — 4 months ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
- Version changed from trunk to 3.5
Duplicate of #19393.
Note: See
TracTickets for help on using
tickets.

media.php