<commit_before># Operating systems

QIS has been installed and is known to work on the following operating systems.

The most common problem encountered is the version of ImageMagick that ships
with the operating system. Unfortunately, ImageMagick is released continuously
and occasionally includes runs of unstable code changes.

* Ubuntu 14.04 LTS - ImageMagick 6.7.7-10 - OK
* Red Hat Enterprise Linux 6.5 - ImageMagick 6.5.4-7 - OK
* Red Hat Enterprise Linux 6.7 to 6.8 - ImageMagick 6.7.2-7 - OK
* Red Hat Enterprise Linux 7.3 - ImageMagick 6.7.8-9 - buggy colour management - see below
 
### Red Hat Enterprise Linux 7.3

ImageMagick 6.7.8-9 handles colorspace conversions and colour profiles incorrectly.
To fix this you need to install a more recent version of ImageMagick.

Remove the standard version, if it is already installed:

	$ sudo yum remove ImageMagick

Download a more recent stable version from https://www.imagemagick.org/download/linux/CentOS/x86_64/ :

	$ wget https://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-6.9.8-0.x86_64.rpm
	$ wget https://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-libs-6.9.8-0.x86_64.rpm
	(optional for development)
	$ wget https://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-devel-6.9.8-0.x86_64.rpm

Install the newer version:

	$ sudo yum install ImageMagick-libs-6.9.8-0.x86_64.rpm
	$ sudo yum install ImageMagick-6.9.8-0.x86_64.rpm
<commit_msg>Document broken SVG in off-the-shelf ImageMagick<commit_after># Operating systems

QIS has been installed and is known to work on the following operating systems.

The most common problem encountered is the version of ImageMagick that ships
with the operating system. Unfortunately, ImageMagick is released continuously
and occasionally includes runs of unstable code changes.

* Ubuntu 14.04 LTS - ImageMagick 6.7.7-10 - OK
* Red Hat Enterprise Linux 6.5 - ImageMagick 6.5.4-7 - OK
* Red Hat Enterprise Linux 6.7 to 6.8 - ImageMagick 6.7.2-7 - OK
* Red Hat Enterprise Linux 7.3 - ImageMagick 6.7.8-9 - buggy colour management - see below
 
### Red Hat Enterprise Linux 7.3

ImageMagick 6.7.8-9 handles colorspace conversions and colour profiles incorrectly.
To fix this you need to install a more recent version of ImageMagick.

Remove the standard version, if it is already installed:

	$ sudo yum remove ImageMagick

Download a more recent stable version from https://www.imagemagick.org/download/linux/CentOS/x86_64/ :

	$ wget https://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-6.9.8-0.x86_64.rpm
	$ wget https://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-libs-6.9.8-0.x86_64.rpm
	(optional for development)
	$ wget https://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-devel-6.9.8-0.x86_64.rpm

Install the newer version:

	$ sudo yum install ImageMagick-libs-6.9.8-0.x86_64.rpm
	$ sudo yum install ImageMagick-6.9.8-0.x86_64.rpm

This fixes the colour management, but if you want to work with `SVG` files there
is a new problem. The standard `rpm` supplied by ImageMagick has a built-in SVG
renderer that does not work well. To fix this you will need to install the
`librsvg2` package and compile ImageMagick from source, specifying `--with-rsvg`
at the `configure` stage. See http://legacy.imagemagick.org/script/install-source.php

{'fraction_non_alphanumeric': 0.08794495961711038, 'fraction_numerical': 0.05474125037391565, 'mean_word_length': 3.9687964338781576, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3793993', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1087, 'n_words': 366}