Closed Sidsector9 closed 3 months ago
According to the API docs, the max image supported is 4MB. We have some code in place to return an error if the image size is larger than that so in theory, a 5MB image shouldn't even work, though it sounds like that's not the case.
@dkotter what you're saying is correct and the check we have is working as expected. When we upload an image size > 4MB, the check selects the largest image variant that is < 4MB to process.
This particular issue is a weird one pertaining to just the .png
format. From what I am understanding, the AI service takes more time to process a .png
compared to a .jpeg
. So, even with a .png
file which has a size of 3.5MB, it still fails.
This works well when the timeout is increased.
Description of the Change
This PR:
'classifai_ms_computer_vision_scan_image_timeout'
Closes #708
How to test the Change
This can be tested with the following sample images:
5mb-png-image 10mb-png-image
Changelog Entry
Credits
Props @QAharshalkadu @Sidsector9
Checklist: