Create tiles like deepzoom/tile format, 256x256 sized

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
darkside
Posts: 2
Joined: 2018-11-01T04:35:09-07:00
Authentication code: 1152

Create tiles like deepzoom/tile format, 256x256 sized

Post by darkside » 2018-11-01T04:42:29-07:00

I have a huge TIF file (12000x58000 px). I am needing to convert it to a deepzoom/tile format, 256x256 sized tiles. Is this possible using Magick.NET?

User avatar
fmw42
Posts: 24095
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Create tiles like deepzoom/tile format, 256x256 sized

Post by fmw42 » 2018-11-01T08:46:13-07:00

ImageMagick supports tiled pyramid TIFF. See defines for TIFF at https://imagemagick.org/script/formats.php

darkside
Posts: 2
Joined: 2018-11-01T04:35:09-07:00
Authentication code: 1152

Re: Create tiles like deepzoom/tile format, 256x256 sized

Post by darkside » 2018-11-02T00:03:46-07:00

I found this : Read all the jpg images from the directory, convert them to 256x256 tiles, compress jpeg and create the pyramid tif in another directory

for %%f in (c:\image\jpg\*.jpg) do ( convert "%%f" -define tiff:tile-geometry=256x256 -compress jpeg ptif:c:\image\ptif\%%~nf.tif )

I need to convert this code for Magick.NET but I can't convert. How can I use it for Magick.NET?

Post Reply