nfnt / resize

Pure golang image resizing
ISC License
3.02k stars 321 forks source link

The package saves all images with the same dpi #10

Closed 1go closed 10 years ago

1go commented 10 years ago

The package resizes the images and saves them all at 96 dpi, even if the original dpi is higher (e.g. 300). Has anyone faced and solved this issue?

Thanks!

nfnt commented 10 years ago

Hi. Resize works on implementations of image.Image. These don't carry any information about dpi, only pixel data. Therefore the dpi information is never used anywhere.