On Wed, Jul 10, 2013 at 11:51 AM, <
plno...@gmail.com> wrote:
> Does the Go "image" package support setting DPI of images
> generated by NewNRGBA, or any other mechanism?
The standard image package covers the basics but doesn't include a way
to set PPI metadata. I'm guessing that it's implied by the pHYs
ancillary chunk. You could eitiher fork the image/png package or just
insert the pHYs chunk into the resultant bytes at an appropriate spot,
like after the IHDR chunk.
http://www.w3.org/TR/PNG/#11pHYs