openfoodfacts/openfoodfacts-server

Upgrade from Cropper.js v1 to Cropper.js v2

Open

#11,874 opened on May 9, 2025

View on GitHub
 (6 comments) (0 reactions) (1 assignee)Perl (477 stars) (236 forks)batch import
good first issuehelp wanted

Description

Description

Product Opener currently uses jquery-cropper in the UI to enable users to select and rotate parts of an image, for example to crop a larger picture to a nutrition table. Cropper.js v2 is not compatible with jquery-cropper, so we need replace the jquery wrapper to upgrade from Cropper.js v1 to Cropper.js v2.

Acceptance criteria

Image cropping works the same as with Cropper.js v1.

Contributor guide