#1285·cropperjs

v2 initialCoverage as replacement for v1 autocroparea covers the canvas rather than the image

Author: gloriousjobCreated Dec 12, 2025Updated Dec 26, 2025

Cropper version

2.1.0

Link to minimal reproduction

https://fengyuanchen.github.io/cropperjs/v2/playground.html

Steps to reproduce

  1. Go to Playground.
  2. Scroll down to <cropper-selection>
  3. Maximize the initiial-coverage

What is expected?

Container should limit to image. When autocroparea was set to 1 in v1, that was the outcome.

EDIT: v1 had this functionality when ViewMode was set to 1 or 2.

What is actually happening?

Container limits to the whole canvas, including the part that is not the image.

System Info

bash

Any additional comments?

initialCoverage should not be considered a replacement of autocroparea if it acts differently. Either a different migration should be provided or initialCoverage should limit to the image.