Lines Matching defs:files
65 " zopflipng [options]... --prefix=[fileprefix] [files.png]...\n"
74 " contain a directory path. When using a prefix, multiple input files"
81 "-y: do not ask about overwriting files.\n"
86 "-d: dry run: don't save any files, just see the console output"
95 " small files, 5 for large files.\n"
121 "Optimize multiple files: zopflipng --prefix a.png b.png c.png\n"
146 bool yes = false; // do not ask to overwrite files
153 std::vector<std::string> files;
242 files.push_back(argv[i]);
247 if (files.size() == 2) {
250 user_out_filename = files[1];
251 files.resize(1);
271 for (size_t i = 0; i < files.size(); i++) {
272 if (use_prefix && files.size() > 1) {
274 GetFileNameParts(files[i], &dir, &file, &ext);
276 // don't get zopfli_zopfli_zopfli_... files after multiple runs.
282 printf("Optimizing %s\n", files[i].c_str());
290 lodepng::load_file(origpng, files[i]);
307 size_t origsize = GetFileSize(files[i]);
325 GetFileNameParts(files[i], &dir, &file, &ext);
328 bool different_output_name = out_filename != files[i];
353 // An output file from a previous run is kept, add that files' size
380 // An output file from a previous run is kept, add that files' size
390 printf("Summary for all files:\n");
404 if (dryrun) printf("No files were written because dry run was specified\n");