This repository has been archived on 2023-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
mightyscape-1.1-deprecated/extensions/fablabchemnitz/svg_embed_and_crop/svg_embed_and_crop
Mario Voigt f2a7e671f1 add svg embed and crop 2021-10-16 01:51:12 +02:00
..
LICENSE add svg embed and crop 2021-10-16 01:51:12 +02:00
LICENSE-apache.txt add svg embed and crop 2021-10-16 01:51:12 +02:00
NOTICE-apache.txt add svg embed and crop 2021-10-16 01:51:12 +02:00
README.md add svg embed and crop 2021-10-16 01:51:12 +02:00
commons-codec-1.7.jar add svg embed and crop 2021-10-16 01:51:12 +02:00
ij-1.47i.jar add svg embed and crop 2021-10-16 01:51:12 +02:00
svg-embed-and-crop-1.6.jar add svg embed and crop 2021-10-16 01:51:12 +02:00

README.md

Inkscape is a powerful open-source vector graphics editor which supports the inclusion of raster images either through file references (links) or through direct embedding of the image data in the Inkscape SVG file. Referencing images as links keeps SVG files small and ensures that changes to image placement and transformations specified in the SVG file remain separate from the underlying image data. However, embedding images may be required as a final step in some production work-flows.

This java-based extension for Inkscape facilitates image embedding by:

  • Automatically identifying all linked images.
  • Cropping image data that lies outside the images' clipping frame.
  • Optionally applying jpeg compression.
  • Optionally resampling images above a maximum resolution
  • Writing the cropped and possibly compressed image data directly in the SVG file.

By cropping image data that lies outside the clipping frame, applying jpeg compression, or resampling images above a maximum resolution, the resulting file size can be reduced significantly. Alternatively, if preserving image quality is a priority jpeg compression and resampling can be explicitly avoided.

The plugin uses ImageJ to load and manipulate the image data and the Apache Commons Codec library to encode the data for embedding.

Installation instructions and documentation