2019-02-19 14:15:29 +01:00
|
|
|
config BR2_PACKAGE_HOST_IMAGEMAGICK
|
|
|
|
bool "host imagemagick"
|
|
|
|
help
|
|
|
|
ImageMagick(R) is a software suite to create, edit, and
|
|
|
|
compose bitmap images. It can read, convert and write images
|
|
|
|
in a variety of formats (about 100) including DPX, EXR, GIF,
|
|
|
|
JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF.
|
|
|
|
Use ImageMagick to translate, flip, mirror, rotate, scale,
|
|
|
|
shear and transform images, adjust image colors, apply various
|
|
|
|
special effects, or draw text, lines, polygons, ellipses and
|
|
|
|
Bézier curves.
|
|
|
|
|
|
|
|
http://www.imagemagick.org/
|
package/imagemagick: add optional SVG support to host variant
SVG can be regarded as the "source code" for assets, like logos or other
graphical elements.
However, SVG needs to be rendered, which requires an XML parser and an
SVG "parser/rendered". As such, it has various runtime impacts, like
bad performance or security. As such, SVG are often pre-rendered to the
required sizes/depths/resolutions into other format, such as PNG, at
build time.
While rsvg-convert (from host-librsvg) would allow the rendering, it
does not allow more complex tasks taht ImageMagick allows for:
compositing more than one image, 2D transforamtions (rotation, skew...).
Yet, SVG support in ImageMagick relies on librsvg, which adds quite a
few dependencies, and thus has a noticeable impact on the build time.
Add an option to allow concerned users to enable/disable SVG support
in ImageMagick.
Enabling SVG support relies on librsvg, which in turns relies on a few
additional packages that ImageMagick can also optionally use. So,
automatically enable the corresponding support as well.
Signed-off-by: "Yann E. MORIN" <yann.morin@orange.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-02-19 14:15:30 +01:00
|
|
|
|
|
|
|
if BR2_PACKAGE_HOST_IMAGEMAGICK
|
|
|
|
|
|
|
|
config BR2_PACKAGE_HOST_IMAGEMAGICK_SVG
|
|
|
|
bool "SVG support"
|
2021-12-19 00:10:46 +01:00
|
|
|
depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS # host-librsvg
|
2022-04-23 00:04:08 +02:00
|
|
|
depends on BR2_HOST_GCC_AT_LEAST_4_9 # host-pango -> host-harfbuzz
|
package/imagemagick: add optional SVG support to host variant
SVG can be regarded as the "source code" for assets, like logos or other
graphical elements.
However, SVG needs to be rendered, which requires an XML parser and an
SVG "parser/rendered". As such, it has various runtime impacts, like
bad performance or security. As such, SVG are often pre-rendered to the
required sizes/depths/resolutions into other format, such as PNG, at
build time.
While rsvg-convert (from host-librsvg) would allow the rendering, it
does not allow more complex tasks taht ImageMagick allows for:
compositing more than one image, 2D transforamtions (rotation, skew...).
Yet, SVG support in ImageMagick relies on librsvg, which adds quite a
few dependencies, and thus has a noticeable impact on the build time.
Add an option to allow concerned users to enable/disable SVG support
in ImageMagick.
Enabling SVG support relies on librsvg, which in turns relies on a few
additional packages that ImageMagick can also optionally use. So,
automatically enable the corresponding support as well.
Signed-off-by: "Yann E. MORIN" <yann.morin@orange.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-02-19 14:15:30 +01:00
|
|
|
help
|
|
|
|
Say 'y' here is you need ImageMagick tools (like convert)
|
|
|
|
to support SVG.
|
|
|
|
|
|
|
|
This is not enabled by default, as it brings quite a few
|
|
|
|
extra dependencies, and thus extra build time.
|
|
|
|
|
2022-04-23 00:04:08 +02:00
|
|
|
comment "SVG support needs host gcc >= 4.9"
|
|
|
|
depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
|
|
|
|
depends on !BR2_HOST_GCC_AT_LEAST_4_9
|
|
|
|
|
package/imagemagick: add optional SVG support to host variant
SVG can be regarded as the "source code" for assets, like logos or other
graphical elements.
However, SVG needs to be rendered, which requires an XML parser and an
SVG "parser/rendered". As such, it has various runtime impacts, like
bad performance or security. As such, SVG are often pre-rendered to the
required sizes/depths/resolutions into other format, such as PNG, at
build time.
While rsvg-convert (from host-librsvg) would allow the rendering, it
does not allow more complex tasks taht ImageMagick allows for:
compositing more than one image, 2D transforamtions (rotation, skew...).
Yet, SVG support in ImageMagick relies on librsvg, which adds quite a
few dependencies, and thus has a noticeable impact on the build time.
Add an option to allow concerned users to enable/disable SVG support
in ImageMagick.
Enabling SVG support relies on librsvg, which in turns relies on a few
additional packages that ImageMagick can also optionally use. So,
automatically enable the corresponding support as well.
Signed-off-by: "Yann E. MORIN" <yann.morin@orange.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-02-19 14:15:30 +01:00
|
|
|
endif
|