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

No output file if identical to input file #434

Open
FredWahl opened this issue Mar 16, 2023 · 0 comments
Open

No output file if identical to input file #434

FredWahl opened this issue Mar 16, 2023 · 0 comments

Comments

@FredWahl
Copy link

I have created a program that automates jpegtran. The output file should be optimised using the recommended flags. The problem is that there are many files and new files are being added so there’s no way of knowing which files have been optimised. It takes time so it would run faster when it tries to optimise something that already has been optimised. I simply look at the filsesizes and if they are different, I overwrite the input file. If they are equal, nothing has changed, and then I delete it.

I think it’s fairly common that you run jpegtran multiple times on files with settings such that jpegtran does nothing other than creating an identical output file. If you have a web site where pictures are added all the time then you have this problem.

Cheers,
Fredrik

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

1 participant