Skip to content

Commit 5592195

Browse files
authored
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 <[email protected]>
1 parent ffb7276 commit 5592195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/imageoutput.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ without alteration while modifying the image description metadata:
14551455

14561456
// Create the output file and copy the image
14571457
auto out = ImageOutput::create ("output.jpg");
1458-
out->open (output, out_spec);
1458+
out->open ("output.jpg", out_spec);
14591459
out->copy_image (in);
14601460

14611461
// Clean up
@@ -1473,7 +1473,7 @@ without alteration while modifying the image description metadata:
14731473

14741474
# Create the output file and copy the image
14751475
out = ImageOutput.create ("output.jpg")
1476-
out.open (output, out_spec)
1476+
out.open ("output.jpg", out_spec)
14771477
out.copy_image (inp)
14781478

14791479
# Clean up

0 commit comments

Comments
 (0)