After inserting picture I change some other row's height. The result is that picture is square. If I comment out row's height change, picture is rectangular as expected.
Image position and size does not have any impact on that issue. It does not have to be positioned in the row with changed height.
```
static void Main(string[] args)
{
var targetPath = Path.Combine(Path.GetTempPath(), Path.ChangeExtension(Path.GetRandomFileName(), ".xlsx"));
using (var package = new ExcelPackage())
{
var worksheet = package.Workbook.Worksheets.Add("new");
var image = new Bitmap(150, 50);
using(var g = Graphics.FromImage(image)) g.FillRectangle(Brushes.Black, 0, 0, 149, 49);
var picture = worksheet.Drawings.AddPicture("Picture", image);
worksheet.Row(1).Height = 5;
package.SaveAs(new FileInfo(targetPath));
}
Process.Start(targetPath);
}
```
Comments: As JanKallman said: [31e4b2540087](http://epplus.codeplex.com/SourceControl/changeset/31e4b2540087) Dec 23, 2015 latest commit/changeset is Jul 12 2017 So I hope that this will move to github before 15 dec. and perhaps with repository hooks for auto update the nuget when someone commits to the master branch or merges.
Image position and size does not have any impact on that issue. It does not have to be positioned in the row with changed height.
```
static void Main(string[] args)
{
var targetPath = Path.Combine(Path.GetTempPath(), Path.ChangeExtension(Path.GetRandomFileName(), ".xlsx"));
using (var package = new ExcelPackage())
{
var worksheet = package.Workbook.Worksheets.Add("new");
var image = new Bitmap(150, 50);
using(var g = Graphics.FromImage(image)) g.FillRectangle(Brushes.Black, 0, 0, 149, 49);
var picture = worksheet.Drawings.AddPicture("Picture", image);
worksheet.Row(1).Height = 5;
package.SaveAs(new FileInfo(targetPath));
}
Process.Start(targetPath);
}
```
Comments: As JanKallman said: [31e4b2540087](http://epplus.codeplex.com/SourceControl/changeset/31e4b2540087) Dec 23, 2015 latest commit/changeset is Jul 12 2017 So I hope that this will move to github before 15 dec. and perhaps with repository hooks for auto update the nuget when someone commits to the master branch or merges.