1config BR2_PACKAGE_HOST_IMAGEMAGICK
2	bool "host imagemagick"
3	help
4	  ImageMagick(R) is a software suite to create, edit, and
5	  compose bitmap images. It can read, convert and write images
6	  in a variety of formats (about 100) including DPX, EXR, GIF,
7	  JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF.
8	  Use ImageMagick to translate, flip, mirror, rotate, scale,
9	  shear and transform images, adjust image colors, apply various
10	  special effects, or draw text, lines, polygons, ellipses and
11	  Bézier curves.
12
13	  http://www.imagemagick.org/
14
15if BR2_PACKAGE_HOST_IMAGEMAGICK
16
17config BR2_PACKAGE_HOST_IMAGEMAGICK_SVG
18	bool "SVG support"
19	depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS # host-librsvg
20	depends on BR2_HOST_GCC_AT_LEAST_4_9 # host-pango -> host-harfbuzz
21	select BR2_PACKAGE_HOST_IMAGEMAGICK_XML
22	help
23	  Say 'y' here is you need ImageMagick tools (like convert)
24	  to support SVG.
25
26	  This is not enabled by default, as it brings quite a few
27	  extra dependencies, and thus extra build time.
28
29comment "SVG support needs host gcc >= 4.9"
30	depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
31	depends on !BR2_HOST_GCC_AT_LEAST_4_9
32
33config BR2_PACKAGE_HOST_IMAGEMAGICK_XML
34	bool "XML support"
35	help
36	  Say 'y' here if you need ImageMagick to support XML. Indeed,
37	  ImageMagick does not trust unvalidated XMP profiles in
38	  images. If such a XML profile is encountered inside e.g. a
39	  PNG image the processing is aborted. Validating the XMP
40	  profile requires that ImageMagick is compiled with XML
41	  support.
42
43endif
44