X-Git-Url: https://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/af13a143c8bfcd713216b1382448174e21b9f278..412512cc2c99762dd122f57a82cc174f414265e5:/src/lbximg.c diff --git a/src/lbximg.c b/src/lbximg.c index ada1692..0a0057a 100644 --- a/src/lbximg.c +++ b/src/lbximg.c @@ -62,7 +62,9 @@ static const struct img_format { char name[4]; bool enabled; } formats[] = { +#if HAVE_LIBPNG { img_output_png, "png", 1 }, +#endif { img_output_pam, "pam", 1 }, { img_output_ppm, "ppm", 1 }, { img_output_pbm, "pbm", 1 }, @@ -330,13 +332,13 @@ int main(int argc, char **argv) static const char sopts[] = "idnvF:f:p:O:VH"; static const struct option lopts[] = { - { "ident", 0, NULL, 'i' }, + { "identify", 0, NULL, 'i' }, { "decode", 0, NULL, 'd' }, { "verbose", 0, NULL, 'v' }, { "file", 1, NULL, 'f' }, { "format", 1, NULL, 'F' }, { "palette", 1, NULL, 'p' }, - { "override", 1, NULL, 'p' }, + { "override", 1, NULL, 'O' }, { "version", 0, NULL, 'V' }, { "usage", 0, NULL, 'U' }, @@ -431,6 +433,9 @@ int main(int argc, char **argv) } switch (mode) { + case MODE_IDENT: + rc = 0; + break; case MODE_DECODE: rc = decode(img, palf, overf, fmt, &argv[optind]); break;