Try grabbing image size without decoding the whole image
Opened this issue · 1 comments
foresmac commented
Looks like Go 1.5 has a DecodeConfig
function which scans image headers for stuff like resolution without deciding the whole image. Might be a possible optimization for the code the grabs the original image size.
scottferg commented
Boom
On Sat, Aug 22, 2015, 4:08 PM Chris Foresman notifications@github.com
wrote:
Looks like Go 1.5 has a DecodeConfig function which scans image headers
for stuff like resolution without deciding the whole image. Might be a
possible optimization for the code the grabs the original image size.https://golang.org/pkg/image/jpeg/#DecodeConfig
—
Reply to this email directly or view it on GitHub
#108.