Skip to content
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

Any way to pass Binary to pngquant.exe from C# code? #305

Closed
linchenrr opened this issue Jul 9, 2018 · 2 comments
Closed

Any way to pass Binary to pngquant.exe from C# code? #305

linchenrr opened this issue Jul 9, 2018 · 2 comments

Comments

@linchenrr
Copy link

Because the issues that file name cannot contains Chinese #301
I want to read the original png file from my own tool written by C# and pass the Binary to pngquant.exe,
Here is the way I use pngquant.exe in the old way which doesn't support chinese filename.

1

I hope I can pass originalBytes in and read output Binary in C# then I can handle that problem.

@kornelski
Copy link
Owner

Yes, you can do that. Instead of input file path specify - and pngquant will read binary from standard input.

I don't know C#, so I can't help you how to send a file through standard input.

@linchenrr
Copy link
Author

thanks, I have done it by using StandardInput and StandardOutput.
problem solved!

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

No branches or pull requests

2 participants