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:
parent
a4b5608e3b
commit
90536d2268
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user