Install ImageMagick with BPG support

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
buchert
Posts: 36
Joined: 2015-02-13T11:15:29-07:00
Authentication code: 6789

Install ImageMagick with BPG support

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Install ImageMagick with BPG support

Post 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.
buchert
Posts: 36
Joined: 2015-02-13T11:15:29-07:00
Authentication code: 6789

Re: Install ImageMagick with BPG support

Post 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.
buchert
Posts: 36
Joined: 2015-02-13T11:15:29-07:00
Authentication code: 6789

Re: Install ImageMagick with BPG support

Post by buchert »

Can I pay someone to help me?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Install ImageMagick with BPG support

Post 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
buchert
Posts: 36
Joined: 2015-02-13T11:15:29-07:00
Authentication code: 6789

Re: Install ImageMagick with BPG support

Post 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.
buchert
Posts: 36
Joined: 2015-02-13T11:15:29-07:00
Authentication code: 6789

Re: Install ImageMagick with BPG support

Post by buchert »

I found the solution to installing BPG on Linux Mint: http://unix.stackexchange.com/questions ... x-mint-17/
Post Reply