Skip to content

Commit

Permalink
docs: Clarify 'copy_image' example (#4522)
Browse files Browse the repository at this point in the history
It was pointed out on Slack that this example was unclear as to what
should be passed to open().

Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz committed Nov 8, 2024
1 parent 36403db commit 9215c91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/imageoutput.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9215c91

Please sign in to comment.