diff --git a/CHANGELOG.md b/CHANGELOG.md index a6562b55..d02070b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Fix detecting of width and height of HEIF images that include `irot` boxes. - Set `Error` status for errorred traces in OpenTelemetry. - (pro) Fix opject detection accuracy when using YOLOv8 or YOLOv10 models. +- (pro) Fix usage of the `obj` and `objw` gravity types inside the `crop` processing option. ## [3.26.1] - 2024-10-28 ### Changed diff --git a/options/processing_options.go b/options/processing_options.go index 30ba061d..6da12e06 100644 --- a/options/processing_options.go +++ b/options/processing_options.go @@ -444,10 +444,6 @@ func applyGravityOption(po *ProcessingOptions, args []string) error { } func applyCropOption(po *ProcessingOptions, args []string) error { - if len(args) > 5 { - return fmt.Errorf("Invalid crop arguments: %v", args) - } - if w, err := strconv.ParseFloat(args[0], 64); err == nil && w >= 0 { po.Crop.Width = w } else {