Changeset 858026
- Timestamp:
- 02/14/2014 05:29:18 PM (12 years ago)
- Location:
- better-images-crop/trunk
- Files:
-
- 2 edited
-
better-images-crop.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
better-images-crop/trunk/better-images-crop.php
r857983 r858026 5 5 Description: this simple plugin help theme developers to create their thumbnail 6 6 with more precition size and area that they want to crop 7 Version: 1. 17 Version: 1.2 8 8 Author: Widi dwi 9 9 Author URI: http://messcode.com/wordpress-better-images-crop.html … … 62 62 break; 63 63 case 2: 64 $space_height = $orig_h - $new_ori_height;64 $space_height = ($orig_h - ($new_ori_height - $orig_h)) - $crop_h; 65 65 $s_y = $space_height /2; 66 66 break; 67 67 case 3: 68 $s_y = $new_ori_height- $crop_h;68 $s_y = ($orig_h - ($new_ori_height - $orig_h)) - $crop_h; 69 69 break; 70 70 } … … 75 75 break; 76 76 case 2: 77 $space_width = $orig_w - $new_ori_width;77 $space_width = ($orig_w-($orig_w - $new_ori_width)) - $crop_w ; 78 78 $s_x = $space_width/2; 79 79 break; 80 80 case 3: 81 $s_x = $orig_w - $new_ori_width;81 $s_x = ($orig_w -($orig_w - $new_ori_width)) - $crop_w; 82 82 break; 83 83 } -
better-images-crop/trunk/readme.txt
r857983 r858026 5 5 Requires at least: 3.0.1 6 6 Tested up to: 3.8 7 Stable tag: 1. 17 Stable tag: 1.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 41 41 == Changelog == 42 42 43 = 0.75 = 43 = 1.2 = 44 * Fix minor error 45 46 = 1.1 = 44 47 * clean the codes 45 48 46 = 0.5=49 = 1 = 47 50 * fix some minor bugs 48 51
Note: See TracChangeset
for help on using the changeset viewer.