Page 1 of 1

Install ImageMagick with BPG support

Posted: 2015-02-13T11:41:22-07:00
by buchert
I use ImageMagick at the command line in Linux. I want to install the latest version of ImageMagick that works with the BPG format, as well as Webp, JPG, PNG, etc. I basically want to install ImageMagick with "all the works." I see that BPG support has been added: viewtopic.php?f=2&t=26880&p=119261&hilit=bpg#p118826

I installed the latest version last week, but had to uninstall it and install version 6.7.7-10 because I couldn't get it to work on JPG files. Something about JPG missing from the decode delegates.

Can someone give me a tutorial on how to install the latest version of ImageMagick on Linux that works with BPG, WebP, JPG, PNG, etc?

Information:

Linux Mint 17, 64bit

Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP

Re: Install ImageMagick with BPG support

Posted: 2015-02-13T11:52:50-07:00
by fmw42
Note, I am not a Linux expert. I use a Mac and use MacPorts to install all my delegates first.

Unfortunately, as I understand it, if you do not install via a package that contains all the image delegate libraries that you need, then you will have to install each delegate library before installing IM. And worse, each delegate library may need its own support delegates to be installed first.

Perhaps some Linux expert can supply more details or some way to deal with it. Some people build there own RPM to install IM and the delegates, but I do not know how to do that.

Re: Install ImageMagick with BPG support

Posted: 2015-02-13T12:54:45-07:00
by buchert
Yes, I had a problem with the delegate libraries when I installed the latest ImageMagick version last week. I think the installation process on Macs and Linux differs, so hopefully a Linux person can help me out.

Re: Install ImageMagick with BPG support

Posted: 2015-02-15T13:44:02-07:00
by buchert
Can I pay someone to help me?

Re: Install ImageMagick with BPG support

Posted: 2015-02-15T13:57:38-07:00
by magick
Download / install the BPG distribution. Next, install the ImageMagick development libraries
  • sudo yum install imagemagick-devel
or use apt-get, not sure what Mint uses. Now download / install the latest ImageMagick:
You may need to refresh the dynamic library cache:
  • ldconfig /usr/local/lib
Ready to go:
  • convert image.bpg image.png

Re: Install ImageMagick with BPG support

Posted: 2015-02-15T17:39:30-07:00
by buchert
Thanks magick! I'm having trouble installing the BPG distribution. When I try to make it I get the error:

Code: Select all

g++ -g -Wl,--gc-sections -o bpgenc bpgenc.o jctvc_glue.o jctvc/libjctvc.a  -lpng -ljpeg -lrt -lm -lpthread
bpgenc.o: In function `read_png':
/home/jurpy/Downloads/libbpg-0.9.5/bpgenc.c:937: undefined reference to `png_set_longjmp_fn'
/home/jurpy/Downloads/libbpg-0.9.5/bpgenc.c:987: undefined reference to `png_set_alpha_mode'
collect2: error: ld returned 1 exit status
make: *** [bpgenc] Error 1
It's a problem with libpng. I've read elsewhere that installing libpng16 would solve this, but it still doesn't work.

But thanks, if I can figure out how to install BPG I'll use your directions for ImageMagick.

Re: Install ImageMagick with BPG support

Posted: 2015-02-22T16:34:55-07:00
by buchert
I found the solution to installing BPG on Linux Mint: http://unix.stackexchange.com/questions ... x-mint-17/