RezImgCrop

Creator: Valentin Rasulov (valikras)

Need help installing this extra?

About RezImgCrop

The outlet filter for images.

This Outlet filter - the filter for images, you can reduce images, cut off or reduce and off.

Often at adding of articles or news on a site, images turn out different, in design accurate images very well look. 

This filter does not break a proportion of the image and creates a folder in a directory "rezcrop" and saves images with a unique name, so that the system at repeated reversal could give already processed result even if to clear a storage cache.

Information

Released
June 9, 2011

Supported Database
MySQL

License
GPLv2

Supported Versions
2.2 - <2.3

Downloads
4,385

Instructions

Attentions! At creation TV, parameter output Type: the Text

Call example:

[[*tv.images:rezimgcrop = ` r-150x, c-150x75 `]] - article preview 150x75px,

[[*tv.images:rezimgcrop = ` r-250x0 `]] - the picture is located in article with the maximum size on width 250px.

r - does decreases of the image,

c - does cropping of the image,

g - Color image conversion in a shade of gray,

WxH - w = width, H = height (in pixels)

In an example above, we about the beginning made image decreases on width 150px, then cut off images 150x75px.

Usage variants;

[[*tv.images:rezimgcrop = `r-150x,c-150x75`]] // resize on width and cropping

[[*tv.images:rezimgcrop = `r-150x,c-150x75,g-`]] //We do resize images, then cropping and a shade of gray

[[*tv.images:rezimgcrop = `min-150`]] //resize min 150px

[[*tv.images:rezimgcrop = `min-150,c-150x150`]] //resize min 150px, then cropping

[[*tv.images:rezimgcrop = `r-150x`]] //resize on width

[[*tv.images:rezimgcrop = `r-150x0`]] //resize on width

[[*tv.images:rezimgcrop = `r-0x75`]] //resize on height

[[*tv.images:rezimgcrop = `r-x75`]] //resize on height

[[*tv.images:rezimgcrop = `r-150x75`]] - if we specify two parameters of reduction of the image the image to decrease not proportionally, it is necessary to specify better width, then to apply crop.

New in 1.1.0-pl4

Changelog for RezImgCrop

RezImgCrop 1.0.4

============================

 - There is no necessity to specify naturally or the relative way of the image.

 - The image conversion function in a shade of gray is added, simply add "g-"

Current releases

1.1.0-pl4
View | Download
June 9, 2011
2.2 - <2.3