question

mterrisse avatar image
0 Votes"
mterrisse asked mterrisse commented

Which graphical library can be used to create graphic files on Windows nano server?

Hello,

I have a web server process that runs on Windows nano server 2019 (in a Docker container). I need to improve it and generate png or jpeg files, and maybe pdf files.
But on Windows nano server there is no GDI nor Direct2D, not even WDDM that is the basis of all the other graphical libraries.
I don't need to display those files of course, just to create them and serve them through the network.

Is there any library I can use that can work on Windows witout GDI / DirectX / OpenGL ?
I have tested many of them and they all fail to load.
I thought that Skia from Google could work, but I was not able to make it work.

I would't like to move from nano server to core server just for that, it is ten times bigger.

Thank you for your help,

Michel Terrisse

windows-server-nano
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

mterrisse avatar image
0 Votes"
mterrisse answered

I have created a png file on nano server with a program written in Rust thanks to this library: https://crates.io/crates/raqote
Note : I had to copy vcruntime140.dll to the server.

Regards,

Michel Terrisse

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DaisyZhou-MSFT avatar image
0 Votes"
DaisyZhou-MSFT answered

Hello @mterrisse,

Thank you for posting here.

I am sorry, we do not know much about Windows server nano.

For your specific request, I suggest you can open a service ticket basaed on the following link.

https://support.microsoft.com/en-in/gp/contactus81?forceorigin=esmc&Audience=Commercial

https://support.microsoft.com/en-us/help/4051701/global-customer-service-phone-numbers

Reference may be helpful.
Get started: Run your first Windows container
https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/run-your-first-container

Thank you for your understanding and support.


Best Regards,
Daisy Zhou

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

mterrisse avatar image
0 Votes"
mterrisse answered

Thank you for the suggestion.

Best regards,

Michel Terrisse

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

mterrisse avatar image
0 Votes"
mterrisse answered mterrisse commented

For information I could run a Rust program based on Skya thanks to on nano server.
I just needed those files to make it work
api-ms-win-crt-convert-l1-1-0.dll
api-ms-win-crt-environment-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-locale-l1-1-0.dll
api-ms-win-crt-math-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-utility-l1-1-0.dll
msvcp140.dll
vcruntime140.dll

I could get them all from C:\Program Files\LLVM\bin\ and it works fine.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Link was deleted in previous comment, I on't know why.
I could run a Rust program based on Skia thanks to skia-safe https://crates.io/crates/skia-safe

0 Votes 0 ·