I have been unable to save TIFFs in any compression format other than LZW using the Conversion API. I've tried G4 and RLE but it always appears to result in an LZW TIFF. G3 or G4 would be the best option for us but LZW is, unfortunately, the worst option in our case.

I'm setting TiffOptions.Compression to various members of the enumeration.

Here's the complete code I'm using in case I'm making some kind of mistake:

var options = new NamedValueCollection(parameters.Options);

var outputType = options.GetValue("OutputFileFormat", "image/tiff");

var config = new ConversionConfig();

var conv = new ConversionHandler(config);

var imageSaveOptions = new ImageSaveOptions

{

ConvertFileType = GetConvertFileType(outputType),

OutputType = OutputType.Stream, // Using streaming for the result. See comment below.

PageMode = false, // false seems to indicate to put all pages in a single file. Docs said it defaults to false--it doesn't.

using (var source = File.OpenRead(parameters.Source.File)) // Don't use the file name as a source or it will assume the format based on the extension. Use a stream to hide the extension so they make no assumption.

{

using (var destination = File.OpenWrite(parameters.Target.File))

{

// Tell it to return a stream by setting the ImageSaveOptions.OutputType to Stream

// and then call the generic function with a Stream type param. The other option is string in which case it puts it in the

// CoversionConfig.OutputPath folder but that had two issues: yet another file to delete and the function often returned null

// instead of said path. I'm not sure what I was doing wrong but the stream version has been reliable without further research.

We are sorry to hear that you are facing such issue. We have reproduced this scenario at our end and sharing this with product team for resolution. Once we have any update regarding this issue we will notify you here.

GroupDocs.Conversion for .NET 17.9.0 is already released. See NuGet package here. You can also get DLL from GroupDocs public API download page. However, the latest version of the API is 17.11. We’d recommend you to utilize latest release in your project.

So it appears you all recently changed the name of the nuget package from “groupdocs-conversion-dotnet” to “GroupDocs.Conversion”. “groupdocs-conversion-net” only goes up to 17.8.0.

Anyway, changing the dependencies really quickly on my machine, updating per the obsolesced properties and methods, and running a sample image through, it appears to now output my requested G4 TIFF.

I will have to change the dependencies of my NuGet package and do a couple builds tonight for it to be ready for QA tomorrow. Hopefully they can get to it tomorrow but, again, in my quick test it seemed to work perfectly.

One last thing hopefully: Is there a place where I can see what the changes were in the various versions? Do you recommend simply using the latest version?