OpenJPEG and VIPS/Openslide

A recent bug/reversion in the openjpeg library caused several hundred of the images in the CDSA to.. turn black.  Basically when the library tried to read the images, it crashed resulting in blank images.   Thanks to the help of future Dr. Cobb and Benjamin Gilbert, I think I figured out how to downgrade my openjpeg library to a previous version without the new bug.

Steps are as follows for Ubuntu 12.04 LT

The workaround for now is to downgrade to *libopenjpeg2, version 1.3+dfsg-4.6ubuntu2*, which obviously is just available from the Ubuntu Saucy repository [2]. This solved the problem for me on Debian and Ubuntu.

$ dpkg -s <packagename> | grep Version

Which will basically tell you:
apt-cache showpkg <packagename>
sudo apt-get install <packagename>=<version>
Then to prevent it from upgrading:
sudo echo “<package> hold” | sudo dpkg –set-selections

dpkg -s libopenjpeg2 | grep Version

Version: 1.3+dfsg-4+squeeze2build0.12.04.1  ##is what I currently have installed— and is causing issues

## now figure out what versions are available

dgutman@node15:~$ apt-cache showpkg libopenjpeg2

Package: libopenjpeg2


1.3+dfsg-4+squeeze2build0.12.04.1 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise-updates_universe_binary-amd64_Packages) (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_precise-security_universe_binary-amd64_Packages) (/var/lib/dpkg/status)

1.3+dfsg-4 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise_universe_binary-amd64_Packages)


### the 1.3+dfsg-4 is the version I want

sudo apt-get install libopenjpeg2=1.3+dfsg-4