Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Inbox Inbox
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1,705
    • Issues 1,705
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Inkscape
  • InboxInbox
  • Issues
  • #6522
Closed
Open
Created Feb 25, 2022 by Caden Mitchell@TriVoxel👽

Inkscape won't allow me to export a large, hi-dpi banner image (zip bomb error)

Summary:

Trying to export a banner I made for work. I get an error when trying to export to TIFF or JPEG.

Steps to reproduce:

  • Open Inkscape
  • Export an image at ~33600x8400px or higher (96x24" @ 350 dpi). PNG will export but will be completely transparent. JPEG and TIFF will error out and not export anything.

What happened?

Errors

Traceback (most recent call last):
  File "raster_output_tiff.py", line 22, in <module>
    TiffOutput().run()
  File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/base.py", line 130, in run
    self.load_raw()
  File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/base.py", line 143, in load_raw
    document = self.load(self.file_io)
  File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/extensions.py", line 74, in load
    self.img = Image.open(stream)
  File "/Applications/Inkscape.app/Contents/Resources/lib/python3.8/site-packages/PIL/Image.py", line 2994, in open
    im = _open_core(fp, filename, prefix, formats)
  File "/Applications/Inkscape.app/Contents/Resources/lib/python3.8/site-packages/PIL/Image.py", line 2981, in _open_core
    _decompression_bomb_check(im.size)
  File "/Applications/Inkscape.app/Contents/Resources/lib/python3.8/site-packages/PIL/Image.py", line 2890, in _decompression_bomb_check
    raise DecompressionBombError(
PIL.Image.DecompressionBombError: Image size (368640000 pixels) exceeds limit of 178956970 pixels, could be decompression bomb DOS attack.

What should have happened?

A successful image export.

Sample attachments:

Version info

Inkscape 1.1.2 (b8e25be8, 2022-02-05)

    GLib version:     2.66.0
    GTK version:      3.24.20
    glibmm version:   2.60.0
    gtkmm version:    3.24.2
    libxml2 version:  2.9.9
    libxslt version:  1.1.34
    Cairo version:    1.16.0
    Pango version:    1.43.0
    HarfBuzz version: 2.7.1
    Poppler version:  20.12.1

    OS version:       macOS

There should probably be an option to disable the zip bomb DOS check in the user preferences. I cannot provide the file I need for work and will need to find another solution now.

Edited Feb 25, 2022 by Caden Mitchell
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking