[WEB] ImageManipulator doesn't resize canvas when generating image
See original GitHub issue🐛 Bug Report
Summary of Issue
When using ImageManipulator to edit images on web, the canvas is not resized.
Environment
Only happens on web
Reproducible Demo
for (let i = 0; i < sliceCount; i++) {
const originX = sliceWidth * i;
const crop = await ImageManipulator.manipulateAsync(
selectedImage.uri,
[
{
crop: {
originX,
originY: 0,
width: sliceWidth,
height: selectedImage.height,
},
},
],
{ compress: 1, format: ImageManipulator.SaveFormat.JPEG, base64: isWeb }
);
}

Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
can't really resize a canvas image - Stack Overflow
The answer consists of two steps : The first (as Kaiido suggests) is making use of the extended syntax of drawImage() taking the ......
Read more >ImageManipulator - Expo Documentation
Manipulate the image provided via uri . Available modifications are rotating, flipping (mirroring), resizing and cropping. Each invocation results in a new file ......
Read more >Module Page Image Manipulator | API for 1 & 2 - ProcessWire
The Page Image Manipulator is a module that let you in a first place do ... Besides the GD-filterfunctions it contains resize, crop,...
Read more >Displayables — Ren'Py Documentation
A displayable that resizes an image to fill the available area, while preserving the width and height of its borders. It is often...
Read more >expo-image-manipulator | Yarn - Package Manager
expo-image-manipulator. Provides functions that let you manipulation images on the local file system, eg: resize, crop.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
#12021 has landed and will be available in sdk 41. thanks @rSkogeby!
I have a proposed solution for this in https://github.com/expo/expo/pull/12021.