Crop picture make picture empty

Aspose.Cells version 23.6.0

var workbook = new Aspose.Cells.Workbook();
var sheet = workbook.Worksheets[0];
var bmpBytes= File.ReadAllBytes("testPic.bmp");
var picId = sheet.Pictures.Add(0, 0, new MemoryStream(bmpBytes));
var pic = sheet.Pictures[picId];
pic.FormatPicture.LeftCrop = 2;
pic.FormatPicture.TopCrop = 2;
pic.FormatPicture.RightCrop = 2;
pic.FormatPicture.BottomCrop = 2;
workbook.Save("test.xlsx", SaveFormat.Xlsx);

The saved file will got an empty picture.

@Flithor,

After an initial testing, I am able to reproduce the issue as you mentioned by using a sample image file. I found when cropping a picture, it makes picture empty in the output Excel file.

We need to evaluate your issue in detail. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSNET-54287

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@Flithor
The crop is expressed as a ratio of the image’s width or height, so it should be less than 1.
We will provide some properties in unit of Inches.

The issues you have found earlier (filed as CELLSNET-54287) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi