Re: [Gimp-user] I need to know how much was cropped with autocrop
[EMAIL PROTECTED] writes: > While looking into this, I notice that autocropping an image uses the > active layer, not the projection, to determine the resultant image > boundaries. (Would this be a bug?) If you want a plug-in that crops the image according to the contents of all layers, not just the active one, I have one: http://shallowsky.com/software/gimp/autocropall.c -- ...Akkana "Beginning GIMP: From Novice to Professional": http://gimpbook.com ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] I need to know how much was cropped with autocrop
Hi, On Wed, 2007-08-08 at 11:35 -0400, [EMAIL PROTECTED] wrote: > While looking into this, I notice that autocropping an image uses the > active layer, not the projection, to determine the resultant image > boundaries. (Would this be a bug?) No. That's what the plug-in does and it seems that's what the plug-in author wanted it to do. Sven ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] I need to know how much was cropped with autocrop
> On 8/1/07, David Gower wrote: > OTOH if you're just autocropping a *layer*, not an image, you can just > compare image corners to layer corners. While looking into this, I notice that autocropping an image uses the active layer, not the projection, to determine the resultant image boundaries. (Would this be a bug?) Based on this behavior, there is no real advantage (from a scripting standpoint; you still have to process each layer individually) to doing a crop image as opposed to a crop layer. By processing each layer individually, its boundary offsets and dimensions remain relative to the original image, easing the task of comparing their "before" and "after" values. (My apologies to David Gowers for responding to the wrong e-mail address.) ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] I need to know how much was cropped with autocrop
> On 8/1/07, David Gower wrote: > OTOH if you're just autocropping a *layer*, not an image, you can just > compare image corners to layer corners. While looking into this, I notice that autocropping an image uses the active layer, not the projection, to determine the resultant image boundaries. (Would this be a bug?) Based on this behavior, there is no real advantage (from a scripting standpoint; you still have to process each layer individually) to doing a crop image as opposed to a crop layer. By processing each layer individually, its boundary offsets and dimensions remain relative to the original image, easing the task of comparing their "before" and "after" values. ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] I need to know how much was cropped with autocrop
> 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 Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] I need to know how much was cropped with autocrop
maybe creating a layer = copy of the image size-way; make it invisible (that should avoid autocropping it) and then compare it's size and position with the cropped image. 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 > ___ > Gimp-user mailing list > Gimp-user@lists.XCF.Berkeley.EDU > https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user > > -- LEGENY Jozef ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user