Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 2262

Commented Issue: Size and Properties (Image) [14670]

$
0
0
Hello to all;

I would like to give thanks to all developers who participated on this project for creating such a great tool for us to use freely.

I created this topic/issue so I can raise my minor problem with using the EPPlus for inserting pictures. The problem is, I have lots of images with different sizes that will be processed inside my Thumbnail function that will output miniature sizes. But when I insert it inside the excel via EPPlus the output seems wrong and I don't know exactly what the ratio it uses. The temporary solution is to right click on the picture then Size and Properties, on the dialog I would click the "Reset" button to use the original size being generated on my Thumbnail function. But I'm talking to a large records, so I cannot click all images just to click the "Reset" button to use the original size.

this is my code:
picture = ws.Drawings.AddPicture("pic" + rowIndex.ToString() + columnIndex.ToString(), image);
picture.From.Column = columnIndex;
picture.From.Row = rowIndex;
ws.SetValue(rowIndex + 1, columnIndex, image.Width.ToString() + " " + image.Height.ToString());
picture.SetSize(image.Width, image.Height);




I really appreciate it you could direct me to the right path on dealing with this problem.

Thanks and more power on this Product.
Comments: I have the latest nuget package and still have this issue. I have set the rowheight in a loop and after that loop a different loop to add the picture and setsize. I have tried both the percentage as the width,height combination. so how is this workitem marked as fixed?

Viewing all articles
Browse latest Browse all 2262

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>