browser-image-resizer
Advanced tools
Comparing version 2.3.2 to 2.3.3
{ | ||
"name": "browser-image-resizer", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"description": "A browser-based utility to downscale and resize images using <canvas>", | ||
@@ -13,4 +13,4 @@ "main": "dist/index.js", | ||
"babel-loader": "^8.0.5", | ||
"webpack": "^4.29.3", | ||
"webpack-cli": "^3.2.3" | ||
"webpack": "^5.74.0", | ||
"webpack-cli": "^4.10.0" | ||
}, | ||
@@ -17,0 +17,0 @@ "scripts": { |
@@ -187,12 +187,2 @@ # browser-image-resizer | ||
## Known Issues | ||
### EXIF Data in iOS | ||
When using a specific camera setting in iOS, EXIF data gets stripped by default: https://stackoverflow.com/questions/57942150/file-upload-and-exif-in-mobile-safari | ||
In order for this to work, a user will need to change their iOS camera settings to "Most Compatible" as below: | ||
![image](https://user-images.githubusercontent.com/6023705/87861285-d2b6a180-c912-11ea-9c44-d29c784cb783.png) | ||
## Contributing | ||
@@ -199,0 +189,0 @@ |
@@ -212,5 +212,8 @@ import { dataURIToBlob } from './data_operations'; | ||
let ctx = canvas.getContext('2d'); | ||
ctx.fillStyle = '#ffffff'; | ||
ctx.fillRect(0, 0, canvas.width, canvas.height); | ||
ctx.save(); | ||
if (config.mimeType === 'image/jpeg') { | ||
// Only apply to JPEGs, white background default, see #42 and #66 | ||
ctx.fillStyle = '#ffffff'; | ||
ctx.fillRect(0, 0, canvas.width, canvas.height); | ||
ctx.save(); | ||
} | ||
@@ -217,0 +220,0 @@ // EXIF |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2132958
43
49355
207