forked from apeisa/Thumbnails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
27 lines (16 loc) · 869 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
How to install
==============
Just add files and folders to your site/modules/ folder and install one of the modules (it installs others). After that create new field or edit existing image field and make it use fieldtype "CropImage".
You can modify crop setups for your site from "Image cropping tool" module under Process. Put each of the setups on their own line, like this:
thumbnail,100,100
portrait,100,150
largethumb,200,200
Usage on templates
==================
FieldtypeCropImage adds getThumb-method to Pageimage. getThumb returns url to the thumbnail you have asked for, ie:
echo $page->cropImages->eq(0)->getThumb('thumbnail');
If you haven't cropped that thumbnail yet, this module provides default cropping from center
Credits
=======
Developed by Antti Peisa (twitter.com/apeisa)
Sponsored by http://stillmovingdesign.com.au/ (thanks Martin!)