Opened 14 years ago
Closed 13 years ago
#23987 closed feature request (worksforme)
add_image_size() shouldn't crop 0 values
| Reported by: | Clorith | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | 3.5.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
When using add_image_size() the image should only be cropped by values that are entered, the following example should only crop the height, and leave the width as the upload original;
add_image_size( 'wide-image', 0, 400, true );
If one uploads a 1600x1600 image, the above should then crop this to 1600x400.
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)
Not really sure if that should even be a possibility, still if
then 0 as a value for either the height or the width isn't really a good option in my opinion. Since we're basically willing to say "don't crop this dimension", boolean FALSE might be more appropriate.