Closed forfin closed 3 years ago
I have create repository to reproduce this issue https://github.com/forfin/issue-preview-generator-215
Hello, We currently do not really support illustator file, we only support .eps for now, but the supported list is misleading for this. It's look to be an issue in python mimetype guesser, which make wrong guess because .ia was previously .eps, they are now .pdf. I created a bug in python upstream about this weird situation:https://bugs.python.org/issue43544.
I suggest you, to try either tweaking the mimetype base or forcing a pdf mimetype for this file during the conversion, if you have the dependency required for the pdf builder, it should work.
I don't know if there are big differences between a pdf generated from a .ai and an .ai loaded with a true vector software. It may be useful or not to use inkscape builder to generate those if the generated previous is more correct that just loading it as pdf.
I hope this will help you :smiley:
Thank you, I override mimetype by add file_ext='.pdf'
when calling get_jpeg_preview
and it can generate the preview. I guess I will use this as workaround.
Version: 0.15.4
I got this error when trying to generate preview from the .ai file.