How to resize an image from the camera for upload to the OCR service

The app that I am developing aims to extract the price of the products in a store from the labels to add it to a calculator as if it were a cash register, in such a way that the app can calculate the cost of the products and only with the use of the app and cell phone camera.

The problem I have found is that the free OCR free api does not allow uploading images of more than 1 megabyte and the camera of most devices brings high quality images by default, this causes that the free plan does not work , I want to know if there is any extension that can resize the image before uploading it to the OCR service, or compress it with less quality, this would help me a lot. Thanks to the community for the help.

You can resize the image using cropview extension…

I was tried but i dont find the solution still …

there are several extensions…
do a search in the extensions directory for image or crop
https://puravidaapps.com/extensions.php

Taifun

Thank, just i doit and was very simple, thanks again.

1 Like

Hello, could you help me? I have the same problem, the images that I upload through ftp are very heavy, I require the same solution that you propose. Thank you

Then follow the advice provided two posts up…