Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
libjpeg binary incompatibility between VIPS and OpenSlide #13
Comments
Markus-PP
changed the title from
libjpeg binary incompibility between VIPS and OpenSlide to libjpeg binary incompatibility between VIPS and OpenSlide
May 31, 2017
|
Hi @Markus-PP. Typically, folks who run VIPS on Windows use the OpenSlide DLL bundled with VIPS. You're seeing this problem because you're using openslide-winbuild to build a modified OpenSlide and then using it with VIPS. The workaround you described makes sense for your situation. cc @jcupitt, who might know whether ImageMagick still needs that patch. |
jcupitt
commented
Jun 5, 2017
|
Hello, I've not checked this patch for a while, perhaps it's no longer necessary. I'll have a look. My memory is that:
But perhaps one of these conditions has changed. |
jcupitt
commented
Jun 5, 2017
|
Oh dear, it looks like |
Markus-PP commentedMay 31, 2017
This just for the record, in case someone encounters the same problem.
We were using libvips with openslide on a Windows platform, and found that the libjpeg produced by libvips doesn't match the libjpeg interface produced by openslide-winbuild
The culprit is the following patch, described in line 200 of
https://github.com/jcupitt/build-win32/blob/master/7.34/vips.modules
After this patch, in jmorecfg.h,
booleanwould be defined asunsigned charon libvips since V. 7.34, while on openslide,booleanremains anintSo, when the vips libjpeg is called from openslide, it correctly produces a
JPEG parameter struct mismatcherror.As a workaround, insert the following line in
jpeg)section in build.shThere might be other solutions, such as installing both DLLs and renaming one of them but I didn't look into it.