Sfoglia il codice sorgente

Force to no color space conversion in ImageBitmapLoader

Takahiro 4 anni fa
parent
commit
3708694c4b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/loaders/ImageBitmapLoader.js

+ 1 - 1
src/loaders/ImageBitmapLoader.js

@@ -73,7 +73,7 @@ ImageBitmapLoader.prototype = Object.assign( Object.create( Loader.prototype ),
 
 		} ).then( function ( blob ) {
 
-			return createImageBitmap( blob, scope.options );
+			return createImageBitmap( blob, Object.assign( scope.options, { colorSpaceConversion: 'none' } ) );
 
 		} ).then( function ( imageBitmap ) {