# opencv 2.4.5 unable to load tif image with jpeg compression on windows 7

I need an OpenCV stable release version with ability to load TIFF with JPEG compression or to do it otherwise i.e. by configuration during installing. I checked this question where user wanted to upload a patch for the same (3rd point).

After configuration the 3rdparty/libtiff/tif_config.h has a line

/* Support JPEG compression (requires IJG JPEG library) */
#undef JPEG_SUPPORT


I assume that this might be the reason opencv is not loading such files. I have separately installed libtiff 3.9.5 with jpeg compression support. And placed the resulting dll in the same folder as executable. Still the error remains.