community/imagemagick: create a light package without ghostscript and libsvg dependencies
for user not using PDF and SVG, propose an alternative imagemagick package which does not embed Ghostscript nor librsvg and their dependencies, in order to make system image smaller.
I'm contributing to an open-source project, Mobilizon.
It is a web application, aiming to provide a privacy caring alternative to Facebook groups and events. It is written in VueJS for the front-end and Elixir for the back-end and build around ActivityPub protocol, like Mastodon.
We are using a wrapper around imagemagick in Elixir in order to clean media that are uploaded by our users. These media are in PNG, JPEG, WEBP and GIF.
We are packaging the application as a Docker image, based on alpine, with imagemagick as a dependency.
This dependency is adding 135MB to the image. Among this, ghostscript - used for PDF and PS support - is weighting 62MB. Probably other dependencies (cups, libusb, poppler, avahi) are due to GH. I guess loads of bytes are also due to SVG support (cairo, pango, libx11).
Mobilizon is not using PDF, PS or SVG as media.