Is it possible to install the q8 version of imagemagick using ubuntu package management?

Asked by Michael Rush

The imagemagick package installs the Q16 version. I would like to install the q8 version. I don't know a lot about ubuntu package management - does it provide any options for choosing "variants" or configuration options?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu imagemagick Edit question
Assignee:
No assignee Edit question
Solved by:
Michael Rush
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You may be able to find a PPA
https://launchpad.net/ubuntu/+ppas

Revision history for this message
Michael Rush (michaelrush-p) said :
#2

I didn't find any PPA's for the q8 version of imagemagick.

Here's how I solved this:

sudo apt-get update
sudo apt-get install devscripts
mkdir -p source/imagemagick
cd source/imagemagick
apt-get source imagemagick
sudo apt-get build-dep imagemagick
cd imagemagick-6.6.0.4

# edit configuration options in rules file at debian/rules, adding:
# --with-quantum-depth=8
# --disable-openmp

# update the installation script for Q8 instead of Q16
perl -pi -e 's/modules-Q16/modules-Q8/g' debian/libmagickcore3-extra.install
perl -pi -e 's/modules-Q16/modules-Q8/g' debian/libmagickcore3.install

dch -l local 'imagemagick-6.6.0.4-q8'
debuild -us -uc
sudo apt-get remove imagemagick
sudo dpkg -i ../*.deb

Revision history for this message
Emil (borconie) said :
#3

Hi Michael, thanks for the input. I wasn't able to complete your step's so instead I have recompiled from source, to have it in Q8.
Steps as follow (folder name can be different depending on version):

wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar zxfv ImageMagick.tar.gz
cd ImageMagick-6.9.0/
./configure --with-quantum-depth=8
make
sudo make install
ldconfig /usr/local/lib

All done.