Changes between Initial Version and Version 4 of Ticket #12120
- Timestamp:
- 03/22/2014 12:58:02 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12120
- Property Keywords has-patch needs-testing added; media thumbnail removed
-
Property
Version
changed from
2.9.1
to
-
Ticket #12120 – Description
initial v4 8 8 9 9 ======== 10 10 {{{ 11 11 function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) { 12 12 … … 15 15 $force = apply_filters('image_resize_dimensions_force', $orig_w, $orig_h, $max_w, $max_h); 16 16 $dims = image_resize_dimensions($orig_w, $orig_h, $max_w, $max_h, $crop, $force); 17 17 }}} 18 18 ======== 19 19 {{{ 20 20 function image_resize_dimensions($orig_w, $orig_h, $dest_w, $dest_h, $crop = false, $force = false) { 21 21 ... … … 24 24 if ( $new_w >= $orig_w && $new_h >= $orig_h && !$force ) 25 25 return false; 26 }}}