Show More
@@ -35,7 +35,7 b' class ExtractOutputPreprocessor(Preprocessor):' | |||||
35 | output_filename_template = Unicode( |
|
35 | output_filename_template = Unicode( | |
36 | "{unique_key}_{cell_index}_{index}{extension}", config=True) |
|
36 | "{unique_key}_{cell_index}_{index}{extension}", config=True) | |
37 |
|
37 | |||
38 | extract_output_types = Set({'png', 'jpg', 'svg', 'application/pdf'}, config=True) |
|
38 | extract_output_types = Set({'png', 'jpeg', 'svg', 'application/pdf'}, config=True) | |
39 |
|
39 | |||
40 | def preprocess_cell(self, cell, resources, cell_index): |
|
40 | def preprocess_cell(self, cell, resources, cell_index): | |
41 | """ |
|
41 | """ | |
@@ -71,7 +71,7 b' class ExtractOutputPreprocessor(Preprocessor):' | |||||
71 | data = out[out_type] |
|
71 | data = out[out_type] | |
72 |
|
72 | |||
73 | #Binary files are base64-encoded, SVG is already XML |
|
73 | #Binary files are base64-encoded, SVG is already XML | |
74 | if out_type in {'png', 'jpg', 'application/pdf'}: |
|
74 | if out_type in {'png', 'jpeg', 'application/pdf'}: | |
75 |
|
75 | |||
76 | # data is b64-encoded as text (str, unicode) |
|
76 | # data is b64-encoded as text (str, unicode) | |
77 | # decodestring only accepts bytes |
|
77 | # decodestring only accepts bytes |
General Comments 0
You need to be logged in to leave comments.
Login now