| Index: ui/file_manager/image_loader/request.js
|
| diff --git a/ui/file_manager/image_loader/request.js b/ui/file_manager/image_loader/request.js
|
| index 848f192901e2f2edbbf705e05ca357e2d8796421..0f55e1a65838ad7edaebdbfb7f04bbd9d980bd15 100644
|
| --- a/ui/file_manager/image_loader/request.js
|
| +++ b/ui/file_manager/image_loader/request.js
|
| @@ -533,11 +533,11 @@ ImageRequest.prototype.onImageLoad_ = function() {
|
| // Perform processing if the url is not a data url, or if there are some
|
| // operations requested.
|
| if (!this.request_.url.match(/^data/) ||
|
| - ImageLoader.shouldProcess(this.image_.width,
|
| - this.image_.height,
|
| - this.request_)) {
|
| - ImageLoader.resizeAndCrop(this.image_, this.canvas_, this.request_);
|
| - ImageLoader.convertColorSpace(
|
| + ImageLoaderUtil.shouldProcess(this.image_.width,
|
| + this.image_.height,
|
| + this.request_)) {
|
| + ImageLoaderUtil.resizeAndCrop(this.image_, this.canvas_, this.request_);
|
| + ImageLoaderUtil.convertColorSpace(
|
| this.canvas_, this.request_.colorSpace || ColorSpace.SRGB);
|
| this.sendImage_(true); // Image changed.
|
| } else {
|
|
|