• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 42888644852
86%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-3369-delete-trash-periodic-tasks
DEFAULT BRANCH: master
Ran 10 Nov 2026 07:51PM UTC
Jobs 10
Files 890
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Nov 2026 07:46PM UTC coverage: 85.892% (+0.009%) from 85.883%
42888644852

push

github

web-flow
feat(subsequences): rescale images for LLMs DEV-2671 (#7766)

### đŸ“Ŗ Summary
Rescale large images to comply with LLM limits before submitting them
for automatic analysis.


### 💭 Notes
All images are rescaled (aspect ratio preserved) to be within 645120
total pixels, converted to RGB, and sent over as JPGs to ensure a
reasonably-sized request with minimal quality loss. Amazon Bedrock
requires all requests to be under 3.5MB. Images with any transparency
are given a white background.

Images that cannot sanely be rescaled, for example, a 1x650000 image,
will raise an exception rather than cropping or changing the aspect
ratio.

Some strange behavior:
The 3.5MB limit does not seem to be universally applied. An 11MB .bmp
file can be sent over without any processing without issue, but a 10MB
jpg file will cause an error. Rather than try to figure out exactly how
the limits work for different kinds of images, it's safer and easier
just to keep everything below 3.5MB.


### 👀 Preview steps
Note: Uploading an image via enketo will automatically resize the image

1. â„šī¸ have an account and a project with an image question
2. Using cURL, add a submission with the following image (JPG image,
10MB):
* Note: you have to use cURL here because enketo and collect will resize
the image before sending it over, and we need it to stay the full 10MB
<img width="3840" height="2160" alt="10mbJPG"
src="https://github.com/user-attachments/assets/566479d0-cd22-4ae8-80ab-3e92b4262701"
/>

3. Add a manual qual question by POSTing to
`/api/v2/assets/<asset_uid>/advanced-features` with

```
{
  "question_xpath": <image_question_xpath>,
  "action": "manual_qual",
  "params": [
    {
      "type": "qualText",
      "uuid": "2404be6c-c7ef-403a-b5a3-40d214e7cb6a",
      "labels": {
        "_default": "Describe the image."
      }
  ]
}
```

4. Add the same question to automatic qual by POSTing to
`/api/v2/assets/<asset_uid>/advanced-features` with

```
{
  "question_xpath": <image_ques... (continued)

10863 of 13682 branches covered (79.4%)

38 of 42 new or added lines in 3 files covered. (90.48%)

33971 of 39551 relevant lines covered (85.89%)

5.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
76.09
-0.96% kpi/views/v2/data.py
Jobs
ID Job ID Ran Files Coverage
1 42888644852.1 10 Nov 2026 07:51PM UTC 885
57.2
2 42888644852.2 10 Nov 2026 07:52PM UTC 885
54.4
3 42888644852.3 10 Nov 2026 07:52PM UTC 887
58.82
4 42888644852.4 10 Nov 2026 07:52PM UTC 885
59.45
5 42888644852.5 10 Nov 2026 07:53PM UTC 885
50.0
6 42888644852.6 10 Nov 2026 07:54PM UTC 887
51.38
7 42888644852.7 10 Nov 2026 07:55PM UTC 888
66.45
8 42888644852.8 10 Nov 2026 07:55PM UTC 887
55.74
9 42888644852.9 10 Nov 2026 07:55PM UTC 887
60.63
10 42888644852.10 10 Nov 2026 07:58PM UTC 890
68.98
Source Files on build 42888644852
  • Tree
  • List 890
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 6ecbac6d on github
  • Prev Build on main (#42877930111)
  • Next Build on main (#42902157740)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc