Cannot Resize the JPG file When Converting to PNG in C#

For linlked image, cannot generate thumbnail with this code.
Generated PNG file same sized as source JPG.

https://we.tl/t-UGQZNaYgvf

void Test()
{
var size = new System.Drawing.Size(96, 96);
var pageNumber = 1;
var filePath = @“sample.JPG”;
var target = filePath + $“_{pageNumber}.png”;

        using (var converter = new GroupDocs.Conversion.Converter(filePath))
        {
            GroupDocs.Conversion.Contracts.SavePageStream thumbStream = page => new FileStream(target, FileMode.Create);
            var options = new GroupDocs.Conversion.Options.Convert.ImageConvertOptions
            {
                Pages = { 1 },
                Format = GroupDocs.Conversion.FileTypes.ImageFileType.Png,
                PageNumber = pageNumber,
                Width = size.Width,
                Height = size.Height
            };

            converter.Convert(thumbStream, options);
        }
    }
1 Like

We are investigating this issue. Your investigation ticket ID is CONVERSIONNET-5000.

Hi
When I test with GroupDocs.Total (21.12.0) I see that the problem still exists.
Isn’t it fixed in this release?

@fsimsek

This issue is expected to be fixed in GroupDocs.Conversion for .NET 21.12. We’ll let you know as release gets on-board.

The issues you have found earlier (filed as CONVERSIONNET-5000) have been fixed in this update. This message was posted using Bugs notification tool by nikola.yankov