Re: [Gimp-user] rounded corners on jpg image.
Quoting John R. Culleton [EMAIL PROTECTED]: have a jpg image that is in rectangular form. I would like to round the corners off symmetrically to soften the shape a bit. Which is the quickest way to to this? The quickest way is to: * Select all * Perform a Rounded rectangle (I think you will find this on the Select menu, but on previous GIMP versions it may be under Script-fu-Selection) * Invert the selection * Fill with a background color (JPEGs do not support transparent areas, therefore you have to choose a specific color for the corners) If you would prefer to have the corners match the background of whereever the image is to appear (on a webpage, for example), you will have to use the PNG format (GIFs will work, too; but will have ugly edges). Change the last step above to: * Perform a Layer-Transparency-Add alpha channel and then an Edit-Clear If you *have* to use JPEG format, I would recommend that you place a border around your image: * Select all * Perform a Rounded rectangle (I think you will find this on the Select menu, but on previous GIMP versions it may be under Script-fu-Selection) * Create a new transparent layer. Increase this layer's boundary size by the amount of border you think will look good. Use the Center option when resizing the layer * Perform an Image-Fit canvas to layers * Invert the selection * Fill with a border color ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] Re: batch rotate scanned images
T F wrote: On 8/14/06, Olivier Ripoll [EMAIL PROTECTED] wrote: T F wrote: i'd like to scan several hundred of my 4x6 prints (photographs) in my trials, the orientations of the tiff files end up being slightly off, randomly, by several degrees. some need to be rotate by +2.3 degrees, others by +3.7, others by -1.2, etc [...] Thanks. I'm an avid user of imagmagick. There is no autorotate feature, nor does David's. What I meant was you first group the files (e.g. in a folder) with +3.7, apply the batch to them etc. I do not see how a software could easily find the angle. If the picture is not an image, but a graphic or a text, the Fourier transform [1] may be a tool for this. If the picture contains some white (triangular/frame) borders due to the rotation angle, there might also be a way, but in any case, automatic detection of the rotation angle would require some maths (maybe through lua and gluas[2], python, or gimp# [3]). But these are just wild guesses. Regards, Olivier [1] http://gfourier.sourceforge.net/ [2] http://pippin.gimp.org/plug-ins/gluas/index.html [3] http://gimp-sharp.sourceforge.net/ ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Re: batch rotate scanned images
T F wrote: i'd like to scan several hundred of my 4x6 prints (photographs) in my trials, the orientations of the tiff files end up being slightly off, randomly, by several degrees. some need to be rotate by +2.3 degrees, others by +3.7, others by -1.2, etc The angle varies from one image (scanned) to the next image. The variation is due to minor misalignments when the original is placed on the platten (by an automatic document feeder). I was hoping to use someone else's script or plugin that calculates the angle on an image by image basis, and then does the rotation and crop. If I need to code it myself, I would start by trying something like the following, probably with imagemagick. 1) for speed, reduce image to about 100px per edge 2) edge detect radius=0, which tends to draw a box around the image 3) quantize to 2 colors 4) save as ascii matrix of 0s and 1s 5) work with rows/columns as arrays 6) determine indicies of first 1s 7) calculate slope of least sq line 8) repeat for bottom, top, left, right sides 9) toss out anomolous slopes, avg the rest ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] rounded corners on jpg image.
On Mon, 14 Aug 2006 [EMAIL PROTECTED] wrote: Date: Mon, 14 Aug 2006 23:42:23 -0700 From: [EMAIL PROTECTED] To: gimp-user@lists.XCF.Berkeley.EDU Subject: Re: [Gimp-user] rounded corners on jpg image. Quoting John R. Culleton [EMAIL PROTECTED]: have a jpg image that is in rectangular form. I would like to round the corners off symmetrically to soften the shape a bit. Which is the quickest way to to this? The quickest way is to: * Select all By the way, a Select All is not required. When I rewrote the script it was a reasonably safe assumption that if a user tried to run the script without having first selected something the script should run on the whole image so I added it. There may be other scripts or plugins which could take the do something approach, feel free to suggest. -- Alan ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] rounded corners on jpg image.
On Tuesday 15 August 2006 16:18, Alan Horkan wrote: On Mon, 14 Aug 2006 [EMAIL PROTECTED] wrote: Date: Mon, 14 Aug 2006 23:42:23 -0700 From: [EMAIL PROTECTED] To: gimp-user@lists.XCF.Berkeley.EDU Subject: Re: [Gimp-user] rounded corners on jpg image. Quoting John R. Culleton [EMAIL PROTECTED]: have a jpg image that is in rectangular form. I would like to round the corners off symmetrically to soften the shape a bit. Which is the quickest way to to this? The quickest way is to: * Select all By the way, a Select All is not required. When I rewrote the script it was a reasonably safe assumption that if a user tried to run the script without having first selected something the script should run on the whole image so I added it. There may be other scripts or plugins which could take the do something approach, feel free to suggest. I must have missed a post somehow. what is the message you are quoting from? -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] rounded corners on jpg image.
On Tue, 15 Aug 2006, John R. Culleton wrote: Date: Tue, 15 Aug 2006 17:41:25 -0400 From: John R. Culleton [EMAIL PROTECTED] To: gimp-user@lists.xcf.berkeley.edu Cc: Alan Horkan [EMAIL PROTECTED] Subject: Re: [Gimp-user] rounded corners on jpg image. On Tuesday 15 August 2006 16:18, Alan Horkan wrote: On Mon, 14 Aug 2006 [EMAIL PROTECTED] wrote: Date: Mon, 14 Aug 2006 23:42:23 -0700 From: [EMAIL PROTECTED] To: gimp-user@lists.XCF.Berkeley.EDU Subject: Re: [Gimp-user] rounded corners on jpg image. Quoting John R. Culleton [EMAIL PROTECTED]: have a jpg image that is in rectangular form. I would like to round the corners off symmetrically to soften the shape a bit. Which is the quickest way to to this? The quickest way is to: * Select all By the way, a Select All is not required. When I rewrote the script it was a reasonably safe assumption that if a user tried to run the script without having first selected something the script should run on the whole image so I added it. There may be other scripts or plugins which could take the do something approach, feel free to suggest. I must have missed a post somehow. what is the message you are quoting from? I'm quoting from the response to your question which suggested Select All then use the Rounded rectangle script etc. http://www.mail-archive.com/gimp-user%40lists.xcf.berkeley.edu/msg10865.html Dont know how you missed it. Overzealous spam filters? -- Alan ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user