Skip to content

Not printing crop position #8098

Open
Open
@niklasravnsborg

Description

@niklasravnsborg

ImageMagick version

7.1.1-47

Operating system

Linux

Operating system, version and so on

macOs

Description

I want to use the following command to get the crop size and offset of my image (original size 924 × 614). It shows a cropped image size but it always only shows +0+0 as the offset which can't be correct.

➜  magick public/myimage.png -fuzz 20% -format "%@" -trim info:
865x405+0+0

Some other commands show more information:

➜  magick public/myimage.png -fuzz 20% -trim info:
public/myimage.png PNG 865x405 924x614+39+169 8-bit TrueColor sRGB 104002B 0.000u 0:00.000
➜  magick public/myimage.png info:
public/myimage.png PNG 924x614 924x614+0+0 8-bit TrueColor sRGB 104002B 0.010u 0:00.000

Seams not like intended behavior to me. I would expect the first command to return 865x405+39+169...

Steps to Reproduce

Run the commands from above on the image.

Images

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions