resize-gd

view resize-gd.1 @ 12:61ca4934fb34

improved Makefile
author meillo@marmaro.de
date Sat, 14 Jun 2008 19:11:21 +0200
parents e020f26c2c6a
children c4834b4f4b54
line source
1 .TH RESIZE\-GD 1 "resize-gd\-0.1" "2008\-06\-14" "resize-gd"
3 .SH NAME
4 resize-gd \- resizes images using the gd library
6 .SH SYNOPSIS
7 .B resize-gd <size> PICTURES
9 .B resize-gd <width>x<height> PICTURES
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.
25 .SH OPTIONS
26 .TP
27 .B \-\-help
28 Show summary of options.
29 .TP
30 .B \-\-version
31 Show program name and version.
33 .SH EXAMPLES
34 Create some thumbnails, preserving aspect ratio:
35 .IP
36 mkdir thumbs
38 cp *.jpg *.png thumbs
40 resize-gd 150 thumbs/*
42 .PP
43 Make some pictures squared:
44 .IP
45 cp -r somepics/ somepics-squared
47 resize-gd 400x400 somepics-squared/*
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 .TP
57 .B 3
58 Not enough memory available to resize the image.
60 .SH BUGS
61 Please report any bug you find to the author.
63 .SH SEE ALSO
64 .BR mogrify (1),
65 .BR ImageMagick (1).
67 .SH AUTHOR
68 resize-gd and this man page were written by markus schnalke <meillo@marmaro.de>
69 .PP
70 Website: http://prog.marmaro.de/resize-gd