 
 config = require '../config'
 crypto = require 'crypto'
+echo = console.log
 FS = require 'fs'
 Path = require 'path'
 

    # Massage the data by reading it, modifying it, then writing it back.
    # NOTE: This assumes full knowledge of the starting data.
    data = require idPath   # require() auto-parses JSON!
    data =
        id: id
        url: data.url
        ready: true
        failed: false
        progress: 1
        mime: data.mime
        size: data.size
        dzi: data.dzi or {  # braces needed otherwise CS syntax error

# - 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.
#
