- set i_format to pnm when reading pnm files and test for it
[imager.git] / pnm.c
diff --git a/pnm.c b/pnm.c
index 9f62522..148b887 100644 (file)
--- a/pnm.c
+++ b/pnm.c
@@ -363,6 +363,8 @@ i_readpnm_wiol(io_glue *ig, int length) {
   
   im = i_img_empty_ch(NULL, width, height, channels);
 
+  i_tags_add(&im->tags, "i_format", 0, "pnm", -1, 0);
+
   switch (type) {
   case 1: /* Ascii types */
   case 2: