display size of pic
This commit is contained in:
parent
dbee9eea6e
commit
cb2e4e1359
@ -71,7 +71,6 @@ if (0 == globbuf.gl_pathc) {
|
|||||||
for (idx=0; idx<globbuf.gl_pathc; idx++) {
|
for (idx=0; idx<globbuf.gl_pathc; idx++) {
|
||||||
|
|
||||||
fname = globbuf.gl_pathv[idx]; /* alias of filename */
|
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) {
|
if (0==image.width && 0==image.height) {
|
||||||
foo = fimg_create_from_dump(fname, &image);
|
foo = fimg_create_from_dump(fname, &image);
|
||||||
@ -84,6 +83,13 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
|
|||||||
return -1;
|
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);
|
foo = filterstack_run(fchain, &image, 0);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "%s: filterstack run --> %d\n",
|
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-F\tdefine:the:filter:chain");
|
||||||
puts("\t-g\tinput glob pattern");
|
puts("\t-g\tinput glob pattern");
|
||||||
puts("\t-L\tlist available filters");
|
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-s\tdo single test");
|
||||||
puts("\t-v\tspit more messages");
|
puts("\t-v\tspit more messages");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user