From 9215c91176aa7c9abda4db9c62b4e07239e64d64 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Wed, 6 Nov 2024 14:15:40 -0800 Subject: [PATCH] docs: Clarify 'copy_image' example (#4522) It was pointed out on Slack that this example was unclear as to what should be passed to open(). Signed-off-by: Larry Gritz --- src/doc/imageoutput.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/imageoutput.rst b/src/doc/imageoutput.rst index 8b06fd679a..8e3c9b2ecb 100644 --- a/src/doc/imageoutput.rst +++ b/src/doc/imageoutput.rst @@ -1455,7 +1455,7 @@ without alteration while modifying the image description metadata: // Create the output file and copy the image auto out = ImageOutput::create ("output.jpg"); - out->open (output, out_spec); + out->open ("output.jpg", out_spec); out->copy_image (in); // Clean up @@ -1473,7 +1473,7 @@ without alteration while modifying the image description metadata: # Create the output file and copy the image out = ImageOutput.create ("output.jpg") - out.open (output, out_spec) + out.open ("output.jpg", out_spec) out.copy_image (inp) # Clean up