You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
- Added checks for supported 3D Tiles extensions. [#9552](https://github.com/CesiumGS/cesium/issues/9552)
11
11
- Added documentation clarifying that the `outlineWidth` property will be ignored on all major browsers on Windows platforms. [#9600](https://github.com/CesiumGS/cesium/pull/9600)
12
12
- Added documentation for `KmlTour`, `KmlTourFlyTo`, and `KmlTourWait`. Added documentation and a `kmlTours` getter to `KmlDataSource`. Removed references to `KmlTourSoundCues`. [#8073](https://github.com/CesiumGS/cesium/issues/8073)
13
+
- Added option to ignore extraneous colorspace information in glTF textures and `ImageBitmap`. [#9624](https://github.com/CesiumGS/cesium/pull/9624)
Copy file name to clipboardExpand all lines: Source/Core/Resource.js
+22-2Lines changed: 22 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -379,6 +379,7 @@ Resource.supportsImageBitmapOptions = function () {
379
379
returncreateImageBitmap(blob,{
380
380
imageOrientation: "flipY",
381
381
premultiplyAlpha: "none",
382
+
colorSpaceConversion: "none",
382
383
});
383
384
})
384
385
.then(function(imageBitmap){
@@ -856,6 +857,7 @@ Resource.fetchBlob = function (options) {
856
857
* @param {Boolean} [options.preferBlob=false] If true, we will load the image via a blob.
857
858
* @param {Boolean} [options.preferImageBitmap=false] If true, image will be decoded during fetch and an <code>ImageBitmap</code> is returned.
858
859
* @param {Boolean} [options.flipY=false] If true, image will be vertically flipped during decode. Only applies if the browser supports <code>createImageBitmap</code>.
860
+
* @param {Boolean} [options.skipColorSpaceConversion=false] If true, any custom gamma or color profiles in the image will be ignored. Only applies if the browser supports <code>createImageBitmap</code>.
859
861
* @returns {Promise.<ImageBitmap>|Promise.<HTMLImageElement>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
860
862
*
861
863
*
@@ -880,9 +882,12 @@ Resource.prototype.fetchImage = function (options) {
@@ -976,12 +984,13 @@ Resource.prototype.fetchImage = function (options) {
976
984
* @param {Resource} [options.resource] Resource object that points to an image to fetch.
977
985
* @param {Boolean} [options.preferImageBitmap] If true, image will be decoded during fetch and an <code>ImageBitmap</code> is returned.
978
986
* @param {Boolean} [options.flipY] If true, image will be vertically flipped during decode. Only applies if the browser supports <code>createImageBitmap</code>.
979
-
*
987
+
*@param {Boolean} [options.skipColorSpaceConversion=false] If true, any custom gamma or color profiles in the image will be ignored. Only applies if the browser supports <code>createImageBitmap</code>.
@@ -1050,12 +1061,14 @@ function fetchImage(options) {
1050
1061
* @param {Request} [options.request] A Request object that will be used. Intended for internal use only.
1051
1062
* @param {Boolean} [options.preferBlob=false] If true, we will load the image via a blob.
1052
1063
* @param {Boolean} [options.preferImageBitmap=false] If true, image will be decoded during fetch and an <code>ImageBitmap</code> is returned.
1064
+
* @param {Boolean} [options.skipColorSpaceConversion=false] If true, any custom gamma or color profiles in the image will be ignored. Only applies when requesting an image and the browser supports <code>createImageBitmap</code>.
1053
1065
* @returns {Promise.<ImageBitmap>|Promise.<HTMLImageElement>|undefined} a promise that will resolve to the requested data when loaded. Returns undefined if <code>request.throttle</code> is true and the request does not have high enough priority.
* Copies texels from the source to the cubemap's face.
57
-
*
58
-
* @param {Object} source The source ImageData, HTMLImageElement, HTMLCanvasElement, HTMLVideoElement, or an object with a width, height, and typed array as shown in the example.
59
-
* @param {Number} [xOffset=0] An offset in the x direction in the cubemap where copying begins.
60
-
* @param {Number} [yOffset=0] An offset in the y direction in the cubemap where copying begins.
61
-
*
57
+
* @param {Object} options Object with the following properties:
0 commit comments