try openslide before jpeg

MRXS images are also JPEG images, so we need to have openslide before
libjpeg in the file test order.

See https://github.com/jcupitt/libvips/issues/406
This commit is contained in:
John Cupitt 2016-03-29 17:26:22 +01:00
parent a4b5608e3b
commit 90536d2268
2 changed files with 4 additions and 1 deletions

View File

@ -242,7 +242,7 @@ vips_foreign_load_jpeg_file_class_init( VipsForeignLoadJpegFileClass *class )
/* We are fast at is_a(), so high priority.
*/
foreign_class->priority = 200;
foreign_class->priority = 50;
load_class->get_flags_filename =
vips_foreign_load_jpeg_file_get_flags_filename;

View File

@ -170,6 +170,9 @@ vips_foreign_load_openslide_class_init( VipsForeignLoadOpenslideClass *class )
/* We need to be ahead of the tiff sniffer since many OpenSlide
* formats are tiff derivatives. If we see a tiff which would be
* better handled by the vips tiff loader we are careful to say no.
*
* We need to be ahead of JPEG, since MRXS images are also
* JPEGs.
*/
foreign_class->priority = 100;
foreign_class->suffs = vips_foreign_openslide_suffs;