Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Converting jpg to Tiled Pyramid TIFF for IIPImage

$
0
0
I'm trying to convert a jpg image to Tiled Pyramid TIFF to use with IIPImage server.
I'm using the following code:
string source = @"image.jpg";
string target = @"image.tif";
using (MagickImage image = new MagickImage(source))
{
    // Sets the output format to jpeg

    image.SetDefine(MagickFormat.Ptif, "tiff:tile-geometry", "256x256");
    image.CompressionMethod = CompressionMethod.JPEG;
    image.Write(target);
}
I set the option by the command line exapmle in IIPImage docs:
"convert s -define tiff:tile-geometry=256x256 -compress jpeg 'ptif:o.tif'"
If i use the vips command line the tif is created correctly:
"vips im_vips2tiff source_image output_image.tif:deflate,tile:256x256,pyramid"

Thanks

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>