Changeset 779880
- Timestamp:
- 09/29/2013 04:03:39 PM (13 years ago)
- Location:
- amtythumb
- Files:
-
- 11 added
- 3 edited
-
tags/4.0.3 (added)
-
tags/4.0.3/amtyThumb.php (added)
-
tags/4.0.3/amtyThumbAdminFunction.php (added)
-
tags/4.0.3/amtyThumbAdminPg.php (added)
-
tags/4.0.3/amtytextthumb.gif (added)
-
tags/4.0.3/cacheFunction.php (added)
-
tags/4.0.3/invalid.gif (added)
-
tags/4.0.3/lead-img.php (added)
-
tags/4.0.3/readme.txt (added)
-
tags/4.0.3/supportingFunction.php (added)
-
tags/4.0.3/videothumb.php (added)
-
trunk/amtyThumb.php (modified) (1 diff)
-
trunk/lead-img.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
amtythumb/trunk/amtyThumb.php
r779873 r779880 6 6 7 7 Author: Amit Gupta 8 Version: 4.0. 28 Version: 4.0.3 9 9 Author URI: http://article-stack.com/ 10 10 */ -
amtythumb/trunk/lead-img.php
r779873 r779880 40 40 41 41 //Actual image url 42 $resized_img = getAmtyThumbCacheURL() . $pid . "_" . $w . "_" . $h ;42 $resized_img = getAmtyThumbCacheURL() . $pid . "_" . $w . "_" . $h . getImageExtension($img); 43 43 44 44 if($img_url_only == "y"){ … … 51 51 }//function end 52 52 53 function getImageExtension($imgURL){ 54 $imgInfo = @getimagesize($imgURL); 55 if($imgInfo[2] == IMAGETYPE_JPEG){ 56 return ".jpg"; 57 }elseif($imgInfo[2] == IMAGETYPE_GIF){ 58 return ".gif"; 59 }elseif($imgInfo[2] == IMAGETYPE_PNG){ 60 return ".png"; 61 }else{ 62 return ''; 63 } 64 } 53 65 54 66 function resizeImg($img,$percent,$constrain,$w,$h,$zc,$imgPath){ -
amtythumb/trunk/readme.txt
r779873 r779880 5 5 Requires at least: 2.5 6 6 Tested up to: 3.5 7 Stable tag: 4.0. 27 Stable tag: 4.0.3 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.3 = 97 * fixed a bug in retriving an image from cache 98 96 99 = 4.0.2 = 97 100 * fixed a bug in saving all resized images in jpg by default … … 148 151 == Upgrade Notice == 149 152 153 = 4.0.3 = 154 * fixed a bug in retriving an image from cache 155 150 156 = 4.0.2 = 151 157 * fixed a bug in saving all resized images in jpg by default
Note: See TracChangeset
for help on using the changeset viewer.