> On 8/1/07, David Feinzeig <[EMAIL PROTECTED]> wrote: > > I am writing a plugin that, among other things, autocrops an image. But, I > > need to know how much was cropped from all four sides, to deal with > > alignment issues. Any idea how I can do this? > > > > Thanks! > > Dave If you create a rectangular path that matches the image boundaries, you can calculate the offset and amount cropped from the difference between the corner coordinates of the path and the corner coordinates of the layer.
OTOH if you're just autocropping a *layer*, not an image, you can just compare image corners to layer corners. HTH. _______________________________________________ Gimp-user mailing list [email protected] https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
