Plugin Directory

Changeset 779883


Ignore:
Timestamp:
09/29/2013 04:28:03 PM (13 years ago)
Author:
amtyera
Message:

bug fix

Location:
amtythumb
Files:
11 added
4 edited

Legend:

Unmodified
Added
Removed
  • amtythumb/trunk/amtyThumb.php

    r779880 r779883  
    66
    77Author: Amit Gupta
    8 Version: 4.0.3
     8Version: 4.0.4
    99Author URI: http://article-stack.com/
    1010*/
  • amtythumb/trunk/amtyThumbAdminFunction.php

    r779873 r779883  
    3636    }
    3737    //echo $img;
    38     $img_uri = getAmtyThumbPluginPath() . "testimage";
    39     $img_url = getAmtyThumbPluginURL() . "testimage";
     38    $ext = getImageExtension($img);
     39    $img_uri = getAmtyThumbPluginPath() . "testimage" . $ext;
     40    $img_url = getAmtyThumbPluginURL() . "testimage" . $ext;
    4041    //echo $img_uri;
    4142    $starttime = time();
    4243    $endtime = time();
    4344    @unlink($img_uri);
     45   
    4446    @resizeImg($img,$percent,$constrain,$w,$h,$zc,$img_uri);
    4547    echo "<br />Time to resize image: " . ($endtime - $starttime);
  • amtythumb/trunk/lead-img.php

    r779880 r779883  
    3131    }
    3232   
     33    $imgExt = getImageExtension($img);
    3334    //To save image on disk
    34     $img_uri = getAmtyThumbCachePath() . $pid . "_" . $w . "_" . $h;
     35    $img_uri = getAmtyThumbCachePath() . $pid . "_" . $w . "_" . $h . $imgExt;
    3536   
    3637    if($pid == -1 || !file_exists($img_uri)) { //for specific image resizging, caching is not required. it'll be saved with -1 pid
     
    4041   
    4142    //Actual image url
    42     $resized_img = getAmtyThumbCacheURL() . $pid . "_" . $w . "_" . $h . getImageExtension($img);
     43    $resized_img = getAmtyThumbCacheURL() . $pid . "_" . $w . "_" . $h . $imgExt;
    4344   
    4445    if($img_url_only == "y"){
     
    176177        if($thumb != ''){
    177178                if($imgInfo[2] == IMAGETYPE_JPEG){
    178                     imagejpeg($thumb, $imgPath . ".jpg" , 100);
     179                    imagejpeg($thumb, $imgPath , 100);
    179180                }elseif($imgInfo[2] == IMAGETYPE_GIF){
    180                     imagegif($thumb, $imgPath . ".gif");
     181                    imagegif($thumb, $imgPath );
    181182                }elseif($imgInfo[2] == IMAGETYPE_PNG){
    182                     imagepng($image_p, $imgPath . ".png", 9);
     183                    imagepng($image_p, $imgPath, 9);
    183184                }
    184185        }
  • amtythumb/trunk/readme.txt

    r779880 r779883  
    55Requires at least: 2.5
    66Tested up to: 3.5
    7 Stable tag: 4.0.3
     7Stable tag: 4.0.4
    88
    99Fetch first image of a post and Resize it. Otherwise resize an image.
     
    9494== Changelog ==
    9595
     96= 4.0.4 =
     97* bug fix
     98
    9699= 4.0.3 =
    97100* fixed a bug in retriving an image from cache
     
    151154== Upgrade Notice ==
    152155
     156= 4.0.4 =
     157* bug fix
     158
    153159= 4.0.3 =
    154160* fixed a bug in retriving an image from cache
Note: See TracChangeset for help on using the changeset viewer.