Skip to content

Commit

Permalink
Update prepgmagick.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Nov 16, 2024
1 parent dbec590 commit da945a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upcean/predraw/prepgmagick.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def save_to_file(inimage, outfile, outfileext, imgcomment="barcode"):
upc_img.attribute('comment', imgcomment)
# Save image
try:
if isinstance(outfile, BytesIO):
if isinstance(outfile, file) or isinstance(outfile, IOBase):
blob = pgmagick.Blob()
upc_img.write(blob)
outfile.write(blob.data)
Expand Down

0 comments on commit da945a9

Please sign in to comment.