pyramidtiff: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: pyramidtiff
| Old | New | Line | |
|---|---|---|---|
| 1 | + | # Overview | |
| 2 | + | ||
| 3 | + | **pyramidtiff** is a command line tool which takes an image file (jpg, tif, png or bmp) and creates a multi resolution tif file with tiles. Such tif files can be used by high resolution image viewers like iipimage to quickly zoom into huge images. | |
| 4 | + | ||
| 5 | + | The new tif contains the original image, the image scaled to half the width and height, the image scaled to quarter width and height and so forth. Each image is saved in tiles and compressed with the Deflate (zlib) algorithm. These are basic TIFF features, so any tiff viewer can show the image. | |
| 6 | + | ||
| 7 | + | # Getting pyramidtif | |
| 8 | + | ||
| 9 | + | The source is on lazarus-ccr and requires at least fpc 2.7.1: | |
| 10 | + | ||
| 11 | + | `svn co `[`https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/applications/pyramidtiff`](https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/applications/pyramidtiff)` pyramidtiff` | |
| 12 | + | ||
| 13 | + | # Usage and parameters | |
| 14 | + | ||
| 15 | + | -c <input file> | |
| 16 | + | Check if file is a pyramid, tiled tif. 0 = yes, 1 = no. | |
| 17 | + | -i <input file> | |
| 18 | + | Input image file can be a: jpg;jpeg png bmp tif;tiff | |
| 19 | + | -o <output file> | |
| 20 | + | Output image file. It will always be a tif file, no matter what extension it has. | |
| 21 | + | --width=<tilewidth> | |
| 22 | + | In pixel. Default=256 | |
| 23 | + | --height=<tileheight> | |
| 24 | + | In pixel. Default=256 | |
| 25 | + | --min-size=<min size> | |
| 26 | + | Create no images with a smaller width or height than this value in pixel. | |
| 27 | + | The original image is always added. | |
| 28 | + | Default=32 | |
| 29 | + | -h or --help | |
| 30 | + | Write this help | |
| 31 | + | -q or --quiet | |
| 32 | + | Be less verbose | |
| 33 | + | -v or --verbose | |
| 34 | + | Be more verbose | |
| 35 | + | -V or --version | |
| 36 | + | Write version. | |
| 37 | + | ||
| 38 | + | # Examples | |
| 39 | + | ||
| 40 | + | Convert input.jpg into output.tif: | |
| 41 | + | ||
| 42 | + | `pyramidtiff -i input.jpg -o output.tif` | |
| 43 | + | ||
| 44 | + | Check if file.tif is already a pyramid, tiled tif: | |
| 45 | + | ||
| 46 | + | `pyramidtiff -c file.tif` | |
| 47 | + | ||
| 48 | + | Execute a command if a file is a pyramid, tiled tif: | |
| 49 | + | ||
| 50 | + | `pyramidtiff -c file.tif && echo file.tif is a pyramid, tiled tif` | |
| 51 | + | ||
| 52 | + | --- | |
| 53 | + | *From the Free Pascal wiki, page "pyramidtiff", as it stood on 2015-09-06 after a change by Jwdietrich, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 54 | + | Category: Applications written in Free Pascal | |
| 55 | + | Category: Example programs | |
| 56 | + | Category: Lazarus-CCR |
