Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

export excel with picture in ubuntu #39

Open
zqxin45 opened this issue Dec 13, 2017 · 2 comments
Open

export excel with picture in ubuntu #39

zqxin45 opened this issue Dec 13, 2017 · 2 comments

Comments

@zqxin45
Copy link

zqxin45 commented Dec 13, 2017

Summary of the issue

i have a export excel project with picture,os windows is ok ,but linux is wrong with no Unresponsive,the server cpu is increase to 99%,the picture filesize has limit?

foreach (var item in items)
{
      using (var stream = new MemoryStream(item.PicUrlByte))
      {
		var img = Image.FromStream(stream);
		ExcelPicture pic = worksheet.Drawings.AddPicture($"pic{i}", img);
		pic.SetSize(120, 120);
		var row = i - 1;
		pic.SetPosition(row, 20, 0, 10);
		worksheet.Row(i).Height = 120;
       }
}

Output:

Exception message:
Full Stack trace:
@VahidN
Copy link
Owner

VahidN commented Dec 14, 2017

v1.5.4 uses the official System.Drawing.Common for .NET Core 2.0. Give it a try.

dotnet add package EPPlus.Core --version 1.5.4 

@piyusher
Copy link

piyusher commented Dec 4, 2018

i face the same issue even after using 1.5.4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants