Sign in Join
Wiki copytemporary

pyramidtiff: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11# Overview
22
33**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.
44
55The 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.
66
77# Getting pyramidtif
88
99The source is on lazarus-ccr and requires at least fpc 2.7.1:
1010
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`
11+```text
12+svn co https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/applications/pyramidtiff pyramidtiff
13+```
1214
1315# Usage and parameters
1416
1517 -c <input file>
1618 Check if file is a pyramid, tiled tif. 0 = yes, 1 = no.
1719 -i <input file>
1820 Input image file can be a: jpg;jpeg png bmp tif;tiff
1921 -o <output file>
2022 Output image file. It will always be a tif file, no matter what extension it has.
2123 --width=<tilewidth>
2224 In pixel. Default=256
2325 --height=<tileheight>
2426 In pixel. Default=256
2527 --min-size=<min size>
2628 Create no images with a smaller width or height than this value in pixel.
2729 The original image is always added.
2830 Default=32
2931 -h or --help
3032 Write this help
3133 -q or --quiet
3234 Be less verbose
3335 -v or --verbose
3436 Be more verbose
3537 -V or --version
3638 Write version.
3739
3840# Examples
3941
4042Convert input.jpg into output.tif:
4143
42-`pyramidtiff -i input.jpg -o output.tif`
44+```text
45+pyramidtiff -i input.jpg -o output.tif
46+```
4347
4448Check if file.tif is already a pyramid, tiled tif:
4549
46-`pyramidtiff -c file.tif`
50+```text
51+pyramidtiff -c file.tif
52+```
4753
4854Execute a command if a file is a pyramid, tiled tif:
4955
50-`pyramidtiff -c file.tif && echo file.tif is a pyramid, tiled tif`
56+```text
57+pyramidtiff -c file.tif && echo file.tif is a pyramid, tiled tif
58+```
5159
5260---
5361*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).*
5462Category: Applications written in Free Pascal
5563Category: Example programs
5664Category: Lazarus-CCR

Back to history