Closed komritza closed 1 year ago
Right now, enhanced images are stored in JPEG, except when you use the Monochrome filter, in which case they are stored as optimized PNG. We plan to improve the file size of scans enhanced with the B&W filter too.
Have you tried to play with the jpegQuality
parameter to see if you get smaller files?
Where do I set this parameter? Here?
var scanConfiguration = {
'source': 'camera',
'multiPage': true,
'jpegQuality': 50, => Is this the right place?
'ocrConfiguration': {
'languages': ['eng'],
'languagesDirectoryUrl': languageFolder.path
}
};
I could not find it in the docs.
Yes. Here is the documentation: https://pub.dev/documentation/flutter_genius_scan/latest/flutter_genius_scan/FlutterGeniusScan/scanWithConfiguration.html
Hi guys, I was wondering is there a way to reduce file size of created pdf file? We are getting mixed results where the file size are in between 200KB(cash invoice)-900KB(A4). Created pdf has only one page. Our implementation looks like this:
1) Start genius scan and store enhancedUrl in the state
2) Create pdf from enhancedUrls before an upload
We expected better results then by using normal camera in flutter regarding file sizes. Is there a way to compress pdf or such? Any help/hint would be highly appreciated.