We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Set rotation for JPG images in Excel file

I’m using the 19.2.0.0 version of .net Aspose Cells. I’m having the following issue:
1: Create a JPG image.
2: Rotate the image manually using any Windows program (I used Windows Photos).
3: Insert the image into an excel sheet using Shapes.AddPicture or Pictures.Add functions.
4: Export the excel file.
The presented problem is that the image is not rotated in the exported file.

The following is the line of code I’m using:
currentSheet.Pictures.Add(row, column, fileName)

@RicardoDavid,

Please share your sample files, runnable code snippet, images showing comparison of outputs created with Aspose.Cells and Excel and expected output created using Excel with us for our testing. We will reproduce the problem and provide our feedback after analysis.