I am simply trying to get a square image and lower the size of the image as much a possible while keep image text clear.
This is my attempt but it does not work.
const capturePhoto = async () => {
const options = {
qualityPrioritization: 'speed',
skipMetadata: true,
flash: 'off',
width: 500,
height: 500,
};
if (camera.current !== null) {
const photo = await camera.current.takePhoto(options);
const {height, width, path} = photo;
console.log(
`The photo has a height of ${height} and a width of ${width}.`,
);
}
};