           @timeout 10000
           versions[1].quality = 50
           image.src = __dirname + '/assets/photo.jpg'
+          image.gm = gm image.src
           image.resize JSON.parse(JSON.stringify(versions[1])), (err, version) ->
             assert.ifError err
             gm(version.src).identify (err, value) ->

        it 'should set corret orientation for resized image', (done) ->
          @timeout 10000
          image.src = __dirname + '/assets/rotate.jpg'
          image.meta.orientation = 'TopLeft'
          image.resize JSON.parse(JSON.stringify(versions[1])), (err, version) ->
            assert.ifError err

          assert.equal image.dest, 'images_test/Wm/PH/f3/I0'
          assert /[a-z0-9]{24}/.test image.tmpName
          assert.deepEqual image.meta, {}
          assert.equal typeof image.gm, 'object'

      describe '#getMeta()', ->
        it 'should return image metadata', (done) ->
