function preferWorker(fileDirectory) {
  return preferWorkerMap.get(fileDirectory.Compression);
}
Whether to prefer running the decoder in a worker
@param {object} fileDirectory the file directory of the image
@returns {boolean}