image analysis / position and size of effectively used area
Posted: 2014-07-20T06:15:22-07:00
hi,
I'm new to imagemagick and would like to aks the gurus on how to do the following:
- I have to determine left-x,top-y and the size (height and width) of the
effectively used area inside a bigger image.
- means this "effectively used area" has a rectangular shape.
- effectively used = non-transparent area (or area that is not white)
actually the "trim" function performs a cool job. but I need to have the position of this
trimmed portion inside the original image. I'm fine with reading these values out of
any imagemagick log.
does anybody have an idea?
best
stephen
I'm new to imagemagick and would like to aks the gurus on how to do the following:
- I have to determine left-x,top-y and the size (height and width) of the
effectively used area inside a bigger image.
- means this "effectively used area" has a rectangular shape.
- effectively used = non-transparent area (or area that is not white)
actually the "trim" function performs a cool job. but I need to have the position of this
trimmed portion inside the original image. I'm fine with reading these values out of
any imagemagick log.
does anybody have an idea?
best
stephen