I'm trying to convert a jpg image to Tiled Pyramid TIFF to use with IIPImage server.
I'm using the following code:
"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
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