We need your sample spreadsheet to properly evaluate the presented scenario and to investigate the cause of scaled image as discussed in your post. It would be of great help if you can share the spreadsheet along with the image generated on your end for our review.
Thank you for providing the sample spreadsheet for our testing.
SheetRender class renders the cell range to slightly enlarged image. however it is the expected behavior. You may avoid this situation by setting the scale size while adding the image to another worksheet. Please check the following piece of code for better elaboration.
C#
ImageOrPrintOptions options = new ImageOrPrintOptions();
options.OnePagePerSheet = true;
options.ImageFormat = ImageFormat.Emf;
SheetRender sr = new SheetRender(sheet, options);
sr.ToImage(0, “D:/output.emf”);
Worksheet sheet2 = book.Worksheets[1];
sheet2.Pictures.Add(0, 1, “D:/output.emf”, 75,75 );
book.Save(“D:/output.xlsx”);
In above provide code snippet, the ImageFormat is set to EMF in order to get the best quality image. Moreover, the code is writing the image on disc and then using the same file to add a picture to another worksheet. You may change the aforesaid settings according to your application requirements. Most important point is the overloaded version of Picture.Add method that accepts the scale parameters (last 2 integer type values) using which you can set the desired scale for the newly inserted image.
Please note, we are performing all tests using the latest version of Aspose.Cells for .NET 8.3.2.2. In case you are not getting the expected results with your current version of the API, we would suggest you to test the case with latest version.