Skip to content

Commit a3ab8b4

Browse files
authored
Make sure the format value is set to extension
1 parent f4d0a19 commit a3ab8b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pytesseract.py

+3
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ def prepare(image):
155155
image = background
156156

157157
image.format = extension
158+
if 'format' not in image.info:
159+
image.info['format'] = extension
160+
158161
return image, extension
159162

160163

0 commit comments

Comments
 (0)