Plugin Directory

Changeset 858026


Ignore:
Timestamp:
02/14/2014 05:29:18 PM (12 years ago)
Author:
wididwi
Message:

version 1.2: fix minor error

Location:
better-images-crop/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • better-images-crop/trunk/better-images-crop.php

    r857983 r858026  
    55Description: this simple plugin help theme developers to create their thumbnail
    66with more precition size and area that they want to crop
    7 Version: 1.1
     7Version: 1.2
    88Author: Widi dwi
    99Author URI: http://messcode.com/wordpress-better-images-crop.html
     
    6262          break;
    6363          case 2:
    64           $space_height = $orig_h - $new_ori_height ;
     64          $space_height = ($orig_h  - ($new_ori_height - $orig_h)) - $crop_h;
    6565            $s_y = $space_height /2;
    6666          break;
    6767          case 3:
    68             $s_y = $new_ori_height - $crop_h;
     68            $s_y = ($orig_h  - ($new_ori_height - $orig_h)) - $crop_h;
    6969          break;
    7070        }
     
    7575          break;
    7676          case 2:
    77             $space_width = $orig_w - $new_ori_width ;
     77            $space_width = ($orig_w-($orig_w - $new_ori_width)) - $crop_w ;
    7878            $s_x = $space_width/2;
    7979          break;
    8080          case 3:
    81               $s_x = $orig_w - $new_ori_width;
     81              $s_x = ($orig_w -($orig_w - $new_ori_width)) - $crop_w;
    8282          break;
    8383        }
  • better-images-crop/trunk/readme.txt

    r857983 r858026  
    55Requires at least: 3.0.1
    66Tested up to: 3.8
    7 Stable tag: 1.1
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141== Changelog ==
    4242
    43 = 0.75 =
     43= 1.2 =
     44* Fix minor error
     45
     46= 1.1 =
    4447* clean the codes
    4548
    46 = 0.5 =
     49= 1 =
    4750* fix some minor bugs
    4851
Note: See TracChangeset for help on using the changeset viewer.