I resize an image and save it to JPG format, and I end up with an image like the one below. even putting the high quality, I don’t get an image of the same standard, when saved by Photoshop
Original imagem sizes:
width: 17008px
Height: 8504px
Size:413mb
Layers:1
SmartObject: NO
Channels: 4 (RGB,Red,Green,Blue)
Setting of Photoshop to save:
quality: 12
Progressive with 3 scans
WINWORD_tdWLub5jwF.jpg (170.1 KB)
Code:
using (PsdImage imageHI = (PsdImage)Image.Load(imagem.OriginalFullPath, new LoadOptions() { BufferSizeHint = 50 }))
{
imageLO.Resize(300, 300);
using (MemoryStream mbStream = new MemoryStream())
{
imageLO.Save(mbStream, new Aspose.PSD.ImageOptions.JpegOptions()
{
Quality = 100,
CompressionType = Aspose.PSD.FileFormats.Jpeg.JpegCompressionMode.Progressive,
JpegLsAllowedLossyError=10
});
resultOfRecord.BinaryLowResolution = mbStream.ToArray();
}
}