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 },
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' },
}
switch (mode) {
+ case MODE_IDENT:
+ rc = 0;
+ break;
case MODE_DECODE:
rc = decode(img, palf, overf, fmt, &argv[optind]);
break;