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

Input and output parameters #395

Closed
acteds opened this issue Feb 19, 2022 · 2 comments
Closed

Input and output parameters #395

acteds opened this issue Feb 19, 2022 · 2 comments

Comments

@acteds
Copy link

acteds commented Feb 19, 2022

Batch (.bat)

Use parameters:

pngquant.exe --force --speed 1 - >"%%~a-out.png" <"%%~a"

When used in batches, sometimes:

  1. The output file size is 0
  2. The output file is not a valid image and cannot be opened
  3. The image content of the output file is partially lost and can be opened

Use parameters:

pngquant.exe --force --speed 1 --output "%%~a-out.png" "%%~a"

No above problems, what is the reason?

@kornelski
Copy link
Owner

When you use >, pngquant isn't creating the file, your shell (cmd.exe) is. It's outside of my control.

@acteds
Copy link
Author

acteds commented Feb 21, 2022

When you use >, pngquant isn't creating the file, your shell (cmd.exe) is. It's outside of my control.

I see.

@acteds acteds closed this as completed Feb 21, 2022
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