Closes #14, closes #15. Fix recovery path used when jp2 is requested at less than...
[bookreader.git] / BookReaderIA / datanode / BookReaderImages.inc.php
index e44a1f8..39b6673 100644 (file)
@@ -474,7 +474,8 @@ class BookReaderImages
                 $cmd = $unzipCmd . $this->getDecompressCmd($imageInfo, $powReduce, $rotate, $scale, $region, $stdoutLink) . $compressCmd;
                 trigger_error('BookReader rerunning with new cmd: ' . $cmd, E_USER_WARNING);
                 
-                //if ($this->passthruIfSuccessful($headers, $cmd, $errorMessage)) { // $$$ move to BookReaderRequest
+                $tempFile = $this->getTempFilename($ext);
+                array_push($this->tempFiles, $tempFile);
                 $imageCreated = $this->createOutputImage($cmd, $tempFile, $errorMessage);
                 if ($imageCreated) {
                     $recovered = true;