/[drupal]/contributions/modules/thumb/README.txt
ViewVC logotype

Contents of /contributions/modules/thumb/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Wed Dec 10 12:10:10 2008 UTC (11 months, 2 weeks ago) by davyvandenbremt
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -1 lines
File MIME type: text/plain
Adding to documentation that you can use colorpicker
1 /* $Id: README.txt,v 1.1 2008/11/24 09:28:45 davyvandenbremt Exp $ */
2
3 Description
4 -----------
5
6 With Thumb you can create thumbnails of your images. Thumb is under the hood
7 just an administration module around phpThumb
8 (http://phpthumb.sourceforge.net/).
9
10 Requirements
11 ------------
12
13 This module requires Drupal 6.
14
15 Installation
16 ------------
17
18 1) Copy/upload the thumb module folder to the sites/all/modules
19 directory of your Drupal installation.
20
21 2) Download phpThumb from http://phpthumb.sourceforge.net/#download.
22
23 3) Extract phpThumb in your module folder.
24
25 4) Enable the Thumb module in Drupal (administer -> modules).
26
27 5) Check if you don't see any Thumb errors on admin/reports/status.
28
29 6) (Optional) Enable the Color module and install the Colorpicker module if
30 you want to use a colorpicker for easily setting hex color codes.
31
32 Configuration
33 -------------
34
35 Define a preset for your thumbnail on administer -> build -> Thumb presets.
36
37 Usage
38 -----
39
40 Use thumb_url to generate the url for your thumbnail. Parameters are the
41 preset and the path to the original picture.
42
43 <?php
44 $original_picture = 'http://farm4.static.flickr.com/3252/3021269164_e18fe3360a.jpg';
45 $thumb = thumb_url('flickr_thumb', $original_picture);
46 ?>
47
48 Alternative modules
49 -------------------
50
51 You could also use the excellent ImageCache module, which was built
52 specifically for Drupal. For generating thumbnails of local files this is a
53 much better solution. The only drawback is that it can't generate thumbnails
54 from remote files. That's the reason why Thumb was developed.
55
56 You can download ImageCache at
57 http://drupal.org/project/imagecache
58
59 Author
60 ------
61
62 Davy Van Den Bremt <info@davyvandenbremt.be>
63 http://www.davyvandenbremt.be

  ViewVC Help
Powered by ViewVC 1.1.2