             tileOverlap: parseInt data.tileOverlap, 10
             tileFormat: data.tileFormat
         }
+    delete data.dzi if not ready    # fix bug we made
     FS.writeFile idPath, (JSON.stringify data, null, 4), _
 
     # Generate a content-by-url symlink.


config = require '../config'
crypto = require 'crypto'
FS = require 'fs'
Path = require 'path'


# - Adds our `ready`, `failed`, and `progress` properties.
#   Assumes all content we're processing finished successfully.
#
# - Moves the image info into a `dzi` container, if it exists.
#   Update: we had a bug here, so also fixes that bug.
#
# - Fixes the `tileSize` and `tileOverlap` properties from strings to ints.
#
