Skip to content

Commit e0ea50f

Browse files
committed
Clarify stream paths
1 parent 208f0f1 commit e0ea50f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ try:
154154
c2pa_data = builder.sign_file(signer, "tests/fixtures/A.jpg", "target/out.jpg")
155155

156156
# Or we can sign the builder with a stream and output it to a stream
157-
a_jpg_stream = open("tests/fixtures/A.jpg", "rb")
158-
out_stream = open("tests/fixtures/A.jpg", "wb")
159-
c2pa_data = builder.sign(signer, "image/jpeg", a_jpg_stream, out_stream)
157+
input_stream = open("tests/fixtures/A.jpg", "rb")
158+
out_stream = open("target/out.jpg", "wb")
159+
c2pa_data = builder.sign(signer, "image/jpeg", input_stream, out_stream)
160160

161161
except Exception as err:
162162
print(err)

0 commit comments

Comments
 (0)