Plugin Directory

Changeset 776299


Ignore:
Timestamp:
09/21/2013 09:29:07 AM (13 years ago)
Author:
amtyera
Message:

Added some documentation about how to use this plugin

Location:
amtythumb/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • amtythumb/trunk/lead-img.php

    r493416 r776299  
    11<?php
    2 
    3 /*
    4 Usage examples:
    5 
    6 Resize an image to 25 x 25
    7 imgsize.php?w=25&h=25&img=path/to/image.jpg
    8 
    9 Resize an image to 50% the size
    10 imgsize.php?percent=50&img=path/to/image.jpg
    11 
    12 Resize an image to 50 pixels wide and autocompute the height
    13 imgsize.php?w=50&img=path/to/image.jpg
    14 
    15 Resize an image to 100 pixels tall and autocompute the width
    16 imgsize.php?h=100&img=path/to/image.jpg
    17 
    18 Resize to 50 pixels width OR 100 pixels tall, whichever resulting image is smaller
    19 imgsize.php?w=50&h=100&constrain=1&img=path/to/image.jpg
    20 */
    212
    223include ("videothumb.php");
  • amtythumb/trunk/readme.txt

    r493416 r776299  
    44Tags: thumbnail, amty, image, first-image, Youtube, Vimeo, Dailymotion, Metacafe, Veoh
    55Requires at least: 2.5
    6 Tested up to: 3.2
    7 Stable tag: 2.0
     6Tested up to: 3.5
     7Stable tag: 2.0.1
    88
    99Fetch first image of a post and Resize it. Otherwise resize an image.
     
    5050For any doubt or query visit [article-stack](http://article-stack.com/ "amty thumb") or
    5151
     52Usage examples:
     53
     54Importatnt:
     55Width and Height both are supposed to be provided
     56if constrain is 0 then image will be streched, if it is 1 then it'll be resized in ratio
     57
     58Resize an image to 25 x 25; default zoom
     59amty_lead_img(25,25,'','path/to/image.jpg');
     60
     61Resize an image to 25 x 25, cropping
     62amty_lead_img(25,25,'','path/to/image.jpg','',1);
     63
     64Resize an image to 50% the size
     65amty_lead_img('','','','path/to/image.jpg',50);
     66
     67Resize an image to 50 pixels wide and autocompute the height
     68amty_lead_img(50,'','','path/to/image.jpg');
     69
     70Resize an image to 100 pixels tall and autocompute the width
     71amty_lead_img('',50,'','path/to/image.jpg');
     72
     73Resize to 50 pixels width OR 100 pixels tall, whichever resulting image is smaller
     74amty_lead_img(50,100,1,'path/to/image.jpg');
     75
     76Resize first image of current post
     77amty_lead_img($w,$h,1,'','',0);
    5278
    5379== Frequently Asked Questions ==
     
    6288            [THZ](http://thinkzarahatke.com/ "amty thumb ")
    6389== Changelog ==
     90
     91= 2.0.1 =
     92* just modified the docs for end user to tell how to use this plugin
    6493
    6594= 2.0 =
Note: See TracChangeset for help on using the changeset viewer.