aboutsummaryrefslogtreecommitdiffstats
path: root/src/png.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/png.c')
-rw-r--r--src/png.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/png.c b/src/png.c
index 9aab2f8..4dea588 100644
--- a/src/png.c
+++ b/src/png.c
@@ -57,6 +57,8 @@ struct image *png_open(FILE *f){
p->img.bufwidth = png_get_image_width(p->png_ptr, p->info_ptr);
p->img.bufheight = png_get_image_height(p->png_ptr, p->info_ptr);
+ p->img.fmt = &libpng;
+
return (struct image *)p;
}