Skip to content

Commit

Permalink
[brainbrowser] add possibility to read nii.gz files with BB (#5314)
Browse files Browse the repository at this point in the history
nii.gz files could not be opened with the brainbrowser module. This modifies the way we read the image so that if the file is gzipped, it is decompressed first before reading the content of the file.
  • Loading branch information
cmadjar authored and driusan committed Oct 28, 2019
1 parent 98eb55d commit 2d3e5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/brainbrowser/ajax/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
header('Content-Type: application/x-mnc');
}
header('X-FileID: ' . $_REQUEST['file_id']);
readfile($image_path);
readgzfile($image_path);
} else {
header("HTTP/1.1 404 Not Found");
exit();
Expand Down

0 comments on commit 2d3e5c4

Please # to comment.