display size of pic

This commit is contained in:
tth 2021-03-30 10:47:44 +02:00
parent dbee9eea6e
commit cb2e4e1359

View File

@ -71,7 +71,6 @@ if (0 == globbuf.gl_pathc) {
for (idx=0; idx<globbuf.gl_pathc; idx++) {
fname = globbuf.gl_pathv[idx]; /* alias of filename */
fprintf(stderr, " %6ld %s\r", (long)globbuf.gl_pathc-idx, fname);
if (0==image.width && 0==image.height) {
foo = fimg_create_from_dump(fname, &image);
@ -84,6 +83,13 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
return -1;
}
if (0 == idx) {
fprintf(stderr, "image size %dx%d\n",
image.width, image.height);
}
fprintf(stderr, " %6ld %s\r", (long)globbuf.gl_pathc-idx, fname);
foo = filterstack_run(fchain, &image, 0);
if (foo) {
fprintf(stderr, "%s: filterstack run --> %d\n",
@ -119,7 +125,7 @@ puts("------ Single pass serial filter ------\nusage:");
puts("\t-F\tdefine:the:filter:chain");
puts("\t-g\tinput glob pattern");
puts("\t-L\tlist available filters");
puts("\t-O\t/output/directory");
puts("\t-O\t/output/directory (default ./p8)");
// puts("\t-s\tdo single test");
puts("\t-v\tspit more messages");