Inkscape.org
Beginners' Questions Exporting svg to jpg
  1. #1
    Dionis51 Dionis51 @Dionis51

    Hello. I can't export svg file to jpg format. When I try to export my svg file to jpg format, the file is not exported and the following error message appears:

     

    "Traceback (most recent call last):
      File "F:\Program Files\Inkscape\share\inkscape\extensions\raster_output_jpg.py", line 28, in <module>
        JpegOutput().run()
      File "F:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 254, in run
        self.load_raw()
      File "F:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 268, in load_raw
        document = self.load(self.file_io)
                   ^^^^^^^^^^^^^^^^^^^^^^^
      File "F:\Program Files\Inkscape\share\inkscape\extensions\inkex\extensions.py", line 166, in load
        from PIL import Image
    ModuleNotFoundError: No module named 'PIL'"

     

    What does this mean? And how can I fix it?

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    It look like this is a bug in Windows, some versions of 1.4. https://gitlab.com/inkscape/inbox/-/issues/10573

    Reproduced here in 1.4.2 Windows 10. Not reproduced in 1.4.2 under Linux Mint.

    The fix might be reported here: https://gitlab.com/inkscape/inkscape/-/issues/5180

    I would expect the next bugfix release to have the repair.

  3. #3
    COD COD @COD
    *

    Tyler -
    I think the latest version of 1.4.2 has fixed this. If I remember correctly, when v1.4.2 was first released, it had this issue. Within a few days, it was fixed and rereleased. A few thousand bad downloads was the result (including me🤣). 

    Inkscape 1.4.2 (f4327f4, 2025-05-13)

    File name :inkscape-1.4.2_2025-05-13_f4327f4-x64.msi

  4. #4
    Tyler Durden Tyler Durden @TylerDurden
    👍

    Lol, I though for sure I had installed that version after the announcement. 🤪

     

    Thank you!