WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

IMAGE EXTRACTOR

Image Extractor is a WordPress plugin that extract the first image from the post and display it.

Syntax

The syntax is:

image_extractor($resize=false, $resize_type=1, $width='', $height='', $class='', $id='', $prefix='', $suffix='')

where:

1) resize: indicate if the plugin has to resize the image and store it in the cache folder 2) resize_type: there are 3 type of resizing: a) 0 -> image will be resized to the new output size, regardless of the original aspectratio. (default) b) 1 -> image will be cropped if necessary to preserve the aspectratio and avoid image distortions. c)2 -> image will be resized preserving its original aspectratio. differences to the new outputsize will be filled with white

3) width: the destination width. If resize is false, this property only add/change the WIDTH attribute of the IMG tag 4) height: the destination height. If resize is false, this property only add/change the HEIGHT attribute of the IMG tag 5) class: add or change the CLASS attribute of the IMG tag 6) id: add or change the ID attribute of the IMG tag 7) prefix: add a prefix to the resulting IMG tag 8) suffix: append a suffix to the resulting IMG tag

Requires: 1.5 or higher
Compatible up to: 1.5, 2.1.2
Last Updated: 2007-7-17
Downloads: 9,036

Ratings

4 stars
4.8 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

0,1,0
0,1,0
0,2,0
0,1,0