We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d166ca commit da0e920Copy full SHA for da0e920
src/utils/image.js
@@ -39,7 +39,7 @@ if (BROWSER_ENV) {
39
const metadata = await img.metadata();
40
const rawChannels = metadata.channels;
41
42
- let { data, info } = await img.raw().toBuffer({ resolveWithObject: true });
+ let { data, info } = await img.rotate().raw().toBuffer({ resolveWithObject: true });
43
44
const newImage = new RawImage(new Uint8ClampedArray(data), info.width, info.height, info.channels);
45
if (rawChannels !== undefined && rawChannels !== info.channels) {
0 commit comments