Changeset 779883
- Timestamp:
- 09/29/2013 04:28:03 PM (13 years ago)
- Location:
- amtythumb
- Files:
-
- 11 added
- 4 edited
-
tags/4.0.4 (added)
-
tags/4.0.4/amtyThumb.php (added)
-
tags/4.0.4/amtyThumbAdminFunction.php (added)
-
tags/4.0.4/amtyThumbAdminPg.php (added)
-
tags/4.0.4/amtytextthumb.gif (added)
-
tags/4.0.4/cacheFunction.php (added)
-
tags/4.0.4/invalid.gif (added)
-
tags/4.0.4/lead-img.php (added)
-
tags/4.0.4/readme.txt (added)
-
tags/4.0.4/supportingFunction.php (added)
-
tags/4.0.4/videothumb.php (added)
-
trunk/amtyThumb.php (modified) (1 diff)
-
trunk/amtyThumbAdminFunction.php (modified) (1 diff)
-
trunk/lead-img.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
amtythumb/trunk/amtyThumb.php
r779880 r779883 6 6 7 7 Author: Amit Gupta 8 Version: 4.0. 38 Version: 4.0.4 9 9 Author URI: http://article-stack.com/ 10 10 */ -
amtythumb/trunk/amtyThumbAdminFunction.php
r779873 r779883 36 36 } 37 37 //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; 40 41 //echo $img_uri; 41 42 $starttime = time(); 42 43 $endtime = time(); 43 44 @unlink($img_uri); 45 44 46 @resizeImg($img,$percent,$constrain,$w,$h,$zc,$img_uri); 45 47 echo "<br />Time to resize image: " . ($endtime - $starttime); -
amtythumb/trunk/lead-img.php
r779880 r779883 31 31 } 32 32 33 $imgExt = getImageExtension($img); 33 34 //To save image on disk 34 $img_uri = getAmtyThumbCachePath() . $pid . "_" . $w . "_" . $h ;35 $img_uri = getAmtyThumbCachePath() . $pid . "_" . $w . "_" . $h . $imgExt; 35 36 36 37 if($pid == -1 || !file_exists($img_uri)) { //for specific image resizging, caching is not required. it'll be saved with -1 pid … … 40 41 41 42 //Actual image url 42 $resized_img = getAmtyThumbCacheURL() . $pid . "_" . $w . "_" . $h . getImageExtension($img);43 $resized_img = getAmtyThumbCacheURL() . $pid . "_" . $w . "_" . $h . $imgExt; 43 44 44 45 if($img_url_only == "y"){ … … 176 177 if($thumb != ''){ 177 178 if($imgInfo[2] == IMAGETYPE_JPEG){ 178 imagejpeg($thumb, $imgPath . ".jpg", 100);179 imagejpeg($thumb, $imgPath , 100); 179 180 }elseif($imgInfo[2] == IMAGETYPE_GIF){ 180 imagegif($thumb, $imgPath . ".gif");181 imagegif($thumb, $imgPath ); 181 182 }elseif($imgInfo[2] == IMAGETYPE_PNG){ 182 imagepng($image_p, $imgPath . ".png", 9);183 imagepng($image_p, $imgPath, 9); 183 184 } 184 185 } -
amtythumb/trunk/readme.txt
r779880 r779883 5 5 Requires at least: 2.5 6 6 Tested up to: 3.5 7 Stable tag: 4.0. 37 Stable tag: 4.0.4 8 8 9 9 Fetch first image of a post and Resize it. Otherwise resize an image. … … 94 94 == Changelog == 95 95 96 = 4.0.4 = 97 * bug fix 98 96 99 = 4.0.3 = 97 100 * fixed a bug in retriving an image from cache … … 151 154 == Upgrade Notice == 152 155 156 = 4.0.4 = 157 * bug fix 158 153 159 = 4.0.3 = 154 160 * fixed a bug in retriving an image from cache
Note: See TracChangeset
for help on using the changeset viewer.