kobotoolbox / kpi

kpi is the (frontend) server for KoboToolbox. It includes an API for users to access data and manage their forms, question library, sharing settings, create reports, and export data.
https://www.kobotoolbox.org
GNU Affero General Public License v3.0
126 stars 170 forks source link

Make image attachments resizing work again #4952

Closed noliveleger closed 1 week ago

noliveleger commented 1 month ago

Description

The API v2 exposes large, medium, small versions of image attachments.

Notes

All the links were pointing to the same file without any resizing while using API v2 since the code was sitting in Kobocat repo. Having the code available in the same repo now let us call the code that resize the images on the fly,