API command to crop a full stack (not just a slice)

Using the ImageJ with the GUI, one can crop a full image stack to a ROI (and not just one slice) with either the crop or duplicate command (ticking the duplicate stack for the latter one).

However in the ImagePlus API, crop only acts on the current slice and duplicate does not take into account the ROI.

It is a bit confusing with what the recorder returns (in Java).
Maybe an additional function signature for crop with a boolean tag (Full=True/False) could be an option ?

The behavior you describe might be affected by a recent regression in ImageJ 1.x
See also this recent topic:

The ImageJ 1.52o14 daily build adds a ImagePlus.crop(“stack”) method and fixes the way the Image>Duplicate command is recorded.