diff --git a/+gadgetron/+external/+writers/write_image.m b/+gadgetron/+external/+writers/write_image.m
index e9417a5..6069e3f 100644
--- a/+gadgetron/+external/+writers/write_image.m
+++ b/+gadgetron/+external/+writers/write_image.m
@@ -44,5 +44,14 @@ function write_attribute_string(socket, attribute_string)
end
function write_data(socket, data)
- write(socket, reshape(data, 1, []));
+
+ if isreal(data)
+ output = data;
+ else
+ output = zeros([2, size(data)], class(data));
+ output(1, :, :, :, :) = real(data);
+ output(2, :, :, :, :) = imag(data);
+ end
+
+ write(socket, reshape(output, 1, []));
end
\ No newline at end of file
diff --git a/gadgetron.prj b/gadgetron.prj
index e9c389e..5294bb1 100644
--- a/gadgetron.prj
+++ b/gadgetron.prj
@@ -8,7 +8,7 @@
This Gadgetron interface is based on ISMRMRD Datatypes, fascilitating direct communication with Gadgetron, or other ISMRMRD-based applications.
NOTE: Requires Gadgetron 4.1 or newer.
${PROJECT_ROOT}/gadgetron-logo.png
- 2.0.13
+ 2.0.14
${PROJECT_ROOT}/gadgetron.mltbx