Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.InvalidOperationException: Image with extension #885

Open
TheR7angelo opened this issue May 22, 2023 · 1 comment
Open

System.InvalidOperationException: Image with extension #885

TheR7angelo opened this issue May 22, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@TheR7angelo
Copy link

I've got this error

System.InvalidOperationException: Image with extension e8e5c19d-3f04-40b2-8589-d9bea6f02b13_140ee830c33-89eb-4adb-adfd-eef52ce4d85b is not supported. at OfficeOpenXml.Drawing.PictureStore.GetPictureType(String extension) at OfficeOpenXml.Drawing.ExcelPicture..ctor(ExcelDrawings drawings, XmlNode node, ExcelGroupShape shape) at OfficeOpenXml.Drawing.ExcelDrawing.GetDrawingFromNode(ExcelDrawings drawings, XmlNode node, XmlElement drawNode, ExcelGroupShape parent) at OfficeOpenXml.Drawing.ExcelDrawing.GetDrawing(ExcelDrawings drawings, XmlNode node) at OfficeOpenXml.Drawing.ExcelDrawings.AddDrawings() at OfficeOpenXml.Drawing.ExcelDrawings..ctor(ExcelPackage xlPackage, ExcelWorksheet sheet) at OfficeOpenXml.ExcelWorksheet.LoadDrawings() at OfficeOpenXml.ExcelWorksheet.get_Drawings() at LibsExcel.Reader.C6.C6Photo.GetAllC6Photo() in C:\Users\ZP6177\Creative Cloud Files\Programmation\C#\Ineo Infracom\Controle Owf\LibsExcel\Reader\C6\C6Photo.cs:line 22 at LibsExcel.Reader.C6.C6Data.GetPhotos(ExcelWorksheet sheet) in C:\Users\ZP6177\Creative Cloud Files\Programmation\C#\Ineo Infracom\Controle Owf\LibsExcel\Reader\C6\C6Data.cs:line 72

Ok my image has a .bin format but I would like to know if it is possible to ignore it and get all the others ?

@JanKallman
Copy link
Contributor

No, I dont think you can ignore it on load. EPPlus should get the image type from the content type instead of the extension. I'll try to provide a fix for this.

@OssianEPPlus OssianEPPlus added the bug Something isn't working label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants