Installation of plugin is similar to other wordpress plugin.
e.g.
- Extract
amtyThumb.zip
to the /wp-content/plugins/
directory - 将
amtyThumb.zip code>提取到 / wp-content / plugins / code>目录 li>- Activate the plugin through the ‘Plugins’ menu in WordPress
- 通过WordPress中的“插件”菜单激活插件 li>
ol>
You may also add amtyThumb_post anywehre in your post or page using short code.
您还可以使用短代码在您的帖子或页面中添加amtyThumb_post anywehre。
For his;
为了他; p>
To fetch image from specific post.
要从特定帖子中获取图片。
Resize to half.
调整为一半。
[amtyThumbOnly percent=50 post_id=282]
[amtyThumbOnly percent = 50 post_id = 282]
To fetch image from current post.
从当前帖子中获取图像。
Resize by its width.(adjust height automatically)
按宽度调整大小。(自动调整高度)
[amtyThumbOnly width=50]
[amtyThumbOnly width = 50] p>
For any doubt or query visit wp-thumb-extractor
如有任何疑问或疑问,请访问 wp-thumb-extractor p>
Usage examples:
用法示例: p>
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
如果约束为0,则将拉伸图像;如果为1,则将按比例调整大小 p>
Resize an image to 25 x 25;
将图片尺寸调整为25 x 25;
default zoom
默认缩放
amty_lead_img(25,25,”,’path/to/image.jpg’);
amty_lead_img(25,25,“,'path / to / image.jpg'); p>
Resize an image to 25 x 25, cropping
将图像尺寸调整为25 x 25,裁剪
amty_lead_img(25,25,”,’path/to/image.jpg’,”,1);
amty_lead_img(25,25,”,'path / to / image.jpg',”,1); p>
Resize an image to 50% the size
将图像调整为尺寸的50%
amty_lead_img(”,”,”,’path/to/image.jpg’,50);
amty_lead_img(“,”,“,'path / to / image.jpg',50); p>
Resize an image to 50 pixels wide and autocompute the height
将图像调整为50像素宽并自动计算高度
amty_lead_img(50,”,”,’path/to/image.jpg’);
amty_lead_img(50,”,”,’path / to / image.jpg’); p>
Resize an image to 100 pixels tall and autocompute the width
将图像调整为100像素高,并自动计算宽度
amty_lead_img(”,50,”,’path/to/image.jpg’);
amty_lead_img(“,50,”,'path / to / image.jpg'); p>
Resize to 50 pixels width OR 100 pixels tall, whichever resulting image is smaller
调整为50像素宽或100像素高,以较小的图像为准
amty_lead_img(50,100,1,’path/to/image.jpg’);
amty_lead_img(50,100,1,'path / to / image.jpg'); p>
Resize first image of current post
调整当前帖子的第一张图片
amty_lead_img($w,$h,1,”,”,0);
amty_lead_img($ w,$ h,1,”,'',0); p>
For direct recaching
直接获取
use getAmtyThumbRecacheLink($pid) somewhere in your theme.
在主题的某个位置使用getAmtyThumbRecacheLink($ pid)。 p>