Export to TIFF fails because of unwanted Quality parameter

Summary:

When I try to export to TIFF, it fails with an error in TiffImagePlugin.py saying 'quality setting only supported for 'jpeg' compression'. No TIFF file is created.

Steps to reproduce:

  • open Inkscape
  • open or create a drawing
  • do File > Export
  • set things in the Export dialogue and select TIFF, click on Export
  • in the Export to TIFF dialogue window, select a compression type (incorrectly labelled as 'Speed') other than JPEG (in my case, Group 4), leave the quality field alone (or set it to something else, including 0 or 100), and click on OK. No TIFF file was created.

What happened?

A progress bar appears briefly and then an error window pops up with a traceback message, starting with raster_output_tiff.py and ending with TiffImagePlugin.py and the message 'ValueError: quality setting only supported for 'jpeg' compression'.

What should have happened?

Either no quality parameter should have been provided (it should be greyed out in the GUI) or its presence should have been gracefully ignored, and a TIFF file should have been created.

Version info

Inkscape 1.2.2 (732a01da63, 2022-12-09)

[where are the apostrophes?]