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
Better support for images #7
Comments
@PrzemyslawKlys, I am having trouble adding jpg or png to header. The word doc says image can not be displayed. |
Ah, i see how you did it: var header = document.Header.Default;
header.AddParagraph("This is header");
//header.AddImage(filePathImage, 100, 100);
header.AddParagraph().AddImage(filePathImage, 100, 100); And yes it doesn't work. I'll take a look. Probably image references is done differently. |
@PrzemyslawKlys: correct, that is how i did it. I appologize for not adding an issue, I felt I was using the package incorrectly. |
Apparently pre-2021 release word does not support transparency for images. Do you think it might be a good idea to script transparency onto the image file itself using something like ImageMagick (effectively just manipulating the opacity channel or inserting it if it doesn't exist)? That might be just entirely outside the scope of the library. |
I have a project for PowerShell that uses SixLabors which is already part of OfficeIMO to do image manipulations: Part of it is image manipulation: Probably ImagePlayground could be published as separate nuget and one could use it's features which automate some of those SixLabors things. |
I am not sure if those are even possible or word does this natively, but I'll add it here
Docs: http://officeopenxml.com/drwPic-ImageData.php
The text was updated successfully, but these errors were encountered: