This plugin lets you fetch first image of any post. It is fully configurable. You can crop an image or resize on the basis of its height, or width, or both.
Ataached/uploaded images might not be displayed in case of localhost.
Features over other plugins:
- Can extract an image which is either on same server or on remote server
- Can extract attached images
- It can fetch first image from the post even if it is a video from
a) Youtube
b) Vimeo
c) Dailymotion
d) Metacafe
e) Veoh
- You can use it to resize/crop an image instead of fetching it from any post.
visit
my post
Remember to pass default image path.
Note : I am pausing it's development for some time due to other priorities. However I'll keep supporting for any bug, small features, and any request.
You can know more about furhter releases, support, plans, and my other developments on
git.
Installation of plugin is similar to other wordpress plugin.
e.g.
- Extract
amtyThumb.zip
to the /wp-content/plugins/
directory
- Activate the plugin through the 'Plugins' menu in WordPress
You may also add amtyThumb_post anywehre in your post or page using short code. For his;
To fetch image from specific post. Resize to half.
[amtyThumbOnly percent=50 post_id=282]
To fetch image from current post. Resize by its width.(adjust height automatically)
[amtyThumbOnly width=50]
For any doubt or query visit
wp-thumb-extractor
Usage examples:
Importatnt:
Width and Height both are supposed to be provided
if constrain is 0 then image will be streched, if it is 1 then it'll be resized in ratio
Resize an image to 25 x 25; default zoom
amty_lead_img(25,25,'','path/to/image.jpg');
Resize an image to 25 x 25, cropping
amty_lead_img(25,25,'','path/to/image.jpg','',1);
Resize an image to 50% the size
amty_lead_img('','','','path/to/image.jpg',50);
Resize an image to 50 pixels wide and autocompute the height
amty_lead_img(50,'','','path/to/image.jpg');
Resize an image to 100 pixels tall and autocompute the width
amty_lead_img('',50,'','path/to/image.jpg');
Resize to 50 pixels width OR 100 pixels tall, whichever resulting image is smaller
amty_lead_img(50,100,1,'path/to/image.jpg');
Resize first image of current post
amty_lead_img($w,$h,1,'','',0);
For direct recaching
use getAmtyThumbRecacheLink($pid) somewhere in your theme.