* ImageUtils: Added warning when saving image as jpg. * Fixed trailing spaces
@@ -47,6 +47,8 @@ const ImageUtils = {
if ( canvas.width > 2048 || canvas.height > 2048 ) {
+ console.warn( 'THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons', image );
+
return canvas.toDataURL( 'image/jpeg', 0.6 );
} else {