Skip to content

Rewrite Extract extension, fix Embed issues

What does the merge request do?

Rewrite the Extract extension with support for:

  • extracting multiple images
  • relative and absolute directories for image extraction
  • workaround for inkscape#2743
  • better error messages
  • base filename to which a counter is added automatically

The patch is loosely based on some work from @Moini two years ago.

There are now two inx files, one for the context menu (which only extracts the selected image) and one for the Extensions menu.

Summary for release notes

The Extract image extension has been improved. You can now enter a base filename; if none is entered, the ids of the selected images are used as filename. You can also choose whether the embedded image data should be replaced by a link to the exported file.

A crash in the Embed image extension has been fixed, in which images were not found by the extension.

On Windows, the Extract image extension now correctly links the extracted files.

Checklist

  • Add unit tests (if applicable)
  • Changes to inkex/ are well documented
  • Clean merge request history
Edited by Jonathan Neuhauser

Merge request reports