 
         marker = view.getUint8(1)
         if marker == 0xda # Start Of Scan
-          console.log('read jpeg chunks: ' + (new Date() - start))
+          # console.log('read jpeg chunks: ' + (new Date() - start))
           return df.resolve()
         length = view.getUint16(2) - 2
 

                  blob = new Blob([
                    intro, exif, blob.slice(2, blob.size)
                  ], {type: blob.type})
                console.log('to blob: ' + (new Date() - start))
                df.resolve(blob)

        img.onerror = ->

      df.reject('not required')

    else
      # start = new Date()

      if img.width / w > img.height / h
        h = img.height * w / img.width
