Mercurial > resize-gd
comparison resize-gd.1 @ 6:e020f26c2c6a
added manpage
author | meillo@marmaro.de |
---|---|
date | Sat, 14 Jun 2008 12:19:35 +0200 |
parents | |
children | 7cc162bbff25 |
comparison
equal
deleted
inserted
replaced
5:8e2804fe30bc | 6:e020f26c2c6a |
---|---|
1 .TH RESIZE\-GD 1 "resize-gd\-0.1" "2008\-06\-14" "resize-gd" | |
2 | |
3 .SH NAME | |
4 resize-gd \- resizes images using the gd library | |
5 | |
6 .SH SYNOPSIS | |
7 .B resize-gd <size> PICTURES | |
8 | |
9 .B resize-gd <width>x<height> PICTURES | |
10 | |
11 .SH DESCRIPTION | |
12 The program resizes given images to a specific size. The files are modified, so copy the files before if you want to keep the original pictures! | |
13 .PP | |
14 If <size> is given, aspect ratio of the images is preserved and only shrinking is done. Smaller images remain unmodified. | |
15 .PP | |
16 If <width>x<height> ist given, the images are resized to match that dimensions. The images probably get stretched and enlarged. | |
17 .PP | |
18 Only JPEG and PNG files are supported. The filetype is detected by the filename suffix which has to be either `.jpg' or `.png' (in lowercase letters). | |
19 Unsupported files get skipped. | |
20 .PP | |
21 This program is meant to be a small(er) alternative to the | |
22 .BR mogrify -resize | |
23 command of ImageMagick. Mainly because ImageMagick has lots of dependencies, while the GD-Library has less. | |
24 | |
25 .SH OPTIONS | |
26 .TP | |
27 .B \-\-help | |
28 Show summary of options. | |
29 .TP | |
30 .B \-\-version | |
31 Show program name and version. | |
32 | |
33 .SH EXAMPLES | |
34 Create some thumbnails, preserving aspect ratio: | |
35 .IP | |
36 mkdir thumbs | |
37 | |
38 cp *.jpg *.png thumbs | |
39 | |
40 resize-gd 150 thumbs/* | |
41 | |
42 .PP | |
43 Make some pictures squared: | |
44 .IP | |
45 cp -r somepics/ somepics-squared | |
46 | |
47 resize-gd 400x400 somepics-squared/* | |
48 | |
49 .SH EXIT CODE | |
50 .TP | |
51 .B 1 | |
52 Any other error | |
53 .TP | |
54 .B 2 | |
55 The size (parameter 1) had no valid format. It has to be either <size> or <width>x<height>. | |
56 | |
57 .SH BUGS | |
58 Please report any bug you find to the author. | |
59 | |
60 .SH SEE ALSO | |
61 .BR mogrify (1), | |
62 .BR ImageMagick (1). | |
63 | |
64 .SH AUTHOR | |
65 resize-gd and this man page were written by markus schnalke <meillo@marmaro.de> | |
66 .PP | |
67 Website: http://prog.marmaro.de/resize-gd |