Skip to content

Commit

Permalink
bug fix: fix libpng error: unrecognized unit type for pHYs chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras Horvath committed Jul 9, 2016
1 parent b53c516 commit 378166e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aaio.c
Expand Up @@ -1609,7 +1609,8 @@ int BITMAP_WRITE_PNG(char *file_name)
PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);

/* set image resolution */
png_set_pHYs(png_ptr, info_ptr, xdpi, ydpi, udpi);
/* png_set_pHYs(png_ptr, info_ptr, xdpi, ydpi, udpi); */
png_set_pHYs(png_ptr, info_ptr, xdpi, ydpi, PNG_RESOLUTION_METER);


png_write_info(png_ptr, info_ptr);
Expand Down

0 comments on commit 378166e

Please sign in to comment.