Re: [Gimp-user] lossless cropping?
zhangwe...@realss.com writes: Can any recommend such an editor for lossless cropping rotating, better even lossless resizing, Lossless resizing? How do you envision that? -- Johan ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] lossless cropping?
Hi, On 02 Feb 09 08:24 Johan Vromans jvrom...@squirrel.nl said: Lossless resizing? How do you envision that? 1. Read the file 2. Separate image segment from, Comment, EXIF, IPTC, and other data segments 3. Delete just those bytes that refer to the unwanted parts of the image 4. Reassemble the file, with any required housekeeping bytes edited 5. Resave As others have said - not something that the GIMP does. Greg Chapman ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] select region inside a rectangle
Hi Adrian, Adrian Dusa wrote: Dear all, I'm a Gimp newbie, using it for a long time but at an amateur level. I have the following (hopefully simple) problem: given two rectangles with a common border, is there a way to select the region *inside* one rectangle (to fill it with another color), without affecting the contents of the other rectangle? I attached a .png file just for illustration, I hope attachments are allowed. The problem is of course simplified, in the real problem I have different shapes for each rectangle (but still with comon borders, like in maps). One way to accomplish this would be, to use the magic wand with the default setting. This implies that the background has just one color: otherwise, you would have to increase the threshold. HTH, Claus -- .:: Claus Cyrny - Webdesign | Grafik | Fotografie ::. :: Website: http://home.arcor.de/ccyrny/ :: :: Fotos: http://photo.net/photodb/slideshow?folder_id=714471 :: :: MySpace: http://www.myspace.com/claus_01 :: :: Qype: http://www.qype.com/place/189992-Claus-Cyrny-Stuttgart :: :: Xing: http://www.xing.com/profile/Claus_Cyrny :: ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] Second try at Re: select region inside a rectangle
Adrian Dusa wrote: I'm a Gimp newbie, using it for a long time but at an amateur level. I have the following (hopefully simple) problem: given two rectangles with a common border, is there a way to select the region *inside* one rectangle (to fill it with another color), without affecting the contents of the other rectangle? I left a couple steps out of the one I sent privately, but this one is, (I think) more elegant anyway. 1) Add an alpha channel to the image. 2) Select the border using the select by color tool. 3). Cut out the border, paste it into a new layer, and hide the new layer. 4). In the base layer, invert the selection, using Select Invert. 5). Choose your color, and fill the desired rectangle. 6) Unhide the new layer, and Merge the layers together. 7) flatten image. ns ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Second try at Re: select region inside a rectangle
Noel Stoutenburg wrote: Adrian Dusa wrote: I'm a Gimp newbie, using it for a long time but at an amateur level. I have the following (hopefully simple) problem: given two rectangles with a common border, is there a way to select the region *inside* one rectangle (to fill it with another color), without affecting the contents of the other rectangle? The steps I outlined work for your attached image of two white rectangles surrounded by black lines. Depending upon the details of the actual images with which you are working, you might be able to make it work with more or fewer steps, but the principle should still hold. ns ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] select region inside a rectangle
The GIMP Select tools have several modes including an additive mode which allows you to add a selection area to your current selection area, a difference mode which allows you to select the difference of two selections or subtract an area from a current selection (which sounds kind of like what you want, and an intersection mode, which allows to to make one selection, then using the select tool, select an intersecting area and take the intersection of the two selections as the final selection (which also may be what you're looking for). Nathan On Mon, Feb 2, 2009 at 7:22 AM, Adrian Dusa dusa.adr...@gmail.com wrote: Dear all, I'm a Gimp newbie, using it for a long time but at an amateur level. I have the following (hopefully simple) problem: given two rectangles with a common border, is there a way to select the region *inside* one rectangle (to fill it with another color), without affecting the contents of the other rectangle? I attached a .png file just for illustration, I hope attachments are allowed. The problem is of course simplified, in the real problem I have different shapes for each rectangle (but still with comon borders, like in maps). Thanks for any hint, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd. 050025 Bucharest sector 5 Romania Tel.:+40 21 3126618 \ +40 21 3120210 / int.101 Fax: +40 21 3158391 ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user -- Nathan Lane Home, http://www.nathandelane.com Blog, http://nathandelane.blogspot.com attachment: Selection Tool Modes - GIMP.png___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] lossless cropping?
I guess lossless means the remained part ot the image hasn't been re-encoded (it has the same jpg data as the original image). Claus Cyrny wrote: I have to admit that, after following this thread, I still have no idea what Zhang Wei Wu means by 'lossless 'cropping'. I understand' lossless compression', but cropping is by definition lossy (you remove part of the original image), so I don't know what 'lossless' means in this context. Claus ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] Free textures
Hi all, after reading the last post in the 'Golden Text' thread, I came up with a number of textures myself. I packed the in a zip archive, and anyone here on the list is free to download them for personal use. I'm actually not sure if those textures tile; an attempt to perform the 'Tile...' option in the Gimp didn't give good results, so I left them as they are. I really enjoyed making those textures, and I think the quality is really good. Sample: http://home.arcor.de/ccyrny/downloads/tiles_samples.jpg zip archive: http://home.arcor.de/ccyrny/downloads/textures.zip The archive contains both preview images (120x120, as JPEG's), as well as the textures themselves as .xcf files (400x400). Hope you like them, Claus -- .:: Claus Cyrny - Webdesign | Grafik | Fotografie ::. :: Website: http://home.arcor.de/ccyrny/ :: :: Fotos: http://photo.net/photodb/slideshow?folder_id=714471 :: :: MySpace: http://www.myspace.com/claus_01 :: :: Qype: http://www.qype.com/place/189992-Claus-Cyrny-Stuttgart :: :: Xing: http://www.xing.com/profile/Claus_Cyrny :: ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Free textures
On Mon, Feb 2, 2009 at 8:19 AM, Claus Cyrny claus.cy...@web.de wrote: Ok, the textures are now available at http://home.arcor.de/ccyrny/downloads/textures.tar.gz and http://home.arcor.de/ccyrny/downloads/textures.zip Claus ;-) Claus, Hi there. That's much better. Both of those are fine. Thanks, Mike ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] lossless cropping?
On Mon, Feb 02, 2009 at 01:37:24PM +0100, Claus Cyrny wrote: I have to admit that, after following this thread, I still have no idea what Zhang Wei Wu means by 'lossless 'cropping'. I understand' lossless compression', but cropping is by definition lossy (you remove part of the original image), so I don't know what 'lossless' means in this context. I'm going to take a wild guess on this (not having read the rest of the thread). If you were to take a lossy format (say, mp3 or jpeg), and cut out portions of the data and then recompresses the remaining data, the data that remains gets refiltered and suffers more loss than that just due to the data cropped out. On the other hand, both mp3 and jpeg support something that could be termed lossless cropping as long as you cut on the data boundaries (packet in mp3, 8x8 block on jpeg) where the data you crop out obviously gets thrown out, but the remaining data does not get refiltered with its resulting additional informational loss. Jeff -- The man who does not read good books has no advantage over the man who cannot read them. -- Mark Twain signature.asc Description: Digital signature ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Free textures
Michael Schumacher wrote: Von: Claus Cyrny claus.cy...@web.de zip archive: http://home.arcor.de/ccyrny/downloads/textures.zip Could you check if this file is a valid zip file? Sorry, the file got corrupted somehow. I'm using Ubuntu's archive manager, and it seems that there's a problem with zip files. I now created a tar.gz archive. I'm not sure if utlilites such as WinZip support this, but currently I have no other option. (I could also try .jar, which I never used before). So, the new URL is http://home.arcor.de/ccyrny/downloads/textures.tar.gz Claus ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] lossless cropping?
Lossless resizing? How do you envision that? -- Johan while I have heard about possible plans about how to do lossless resizing from one of the JPEG guys, it would require extension of the standard and it would only be able to resize to 1/8, 2/8, 3/8, ... of the original size. It does not really make much sense, resizing is destructive by nature and you usually resize picture to make the file physically smaller, which would not be possible if it were lossless. BTW, I am author of a Windows application for lossless rotation, cropping, canvas extension and retouching called RealWorld Photos. -- Vlasta ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] lossless cropping?
Greg Chapman wrote: Hi Alexander, On 02 Feb 09 09:26 Alexander Rabtchevich alexander.v.rabtchev...@iaph.bas-net.by said: I think you mix cropping and resizing :). I didn't mix them. I just assumed Johan had. Up till now this thread had been exclusively about cropping. I have to admit that, after following this thread, I still have no idea what Zhang Wei Wu means by 'lossless 'cropping'. I understand' lossless compression', but cropping is by definition lossy (you remove part of the original image), so I don't know what 'lossless' means in this context. Claus -- .:: Claus Cyrny - Webdesign | Grafik | Fotografie ::. :: Website: http://home.arcor.de/ccyrny/ :: :: Fotos: http://photo.net/photodb/slideshow?folder_id=714471 :: :: MySpace: http://www.myspace.com/claus_01 :: :: Qype: http://www.qype.com/place/189992-Claus-Cyrny-Stuttgart :: :: Xing: http://www.xing.com/profile/Claus_Cyrny :: ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] lossless cropping?
On Mon, Feb 02, 2009 at 01:37:24PM +0100, Claus Cyrny wrote: I have to admit that, after following this thread, I still have no idea what Zhang Wei Wu means by 'lossless 'cropping'. I understand' lossless compression', but cropping is by definition lossy (you remove part of the original image), so I don't know what 'lossless' means in this context. I'm going to take a wild guess on this (not having read the rest of the thread). If you were to take a lossy format (say, mp3 or jpeg), and cut out portions of the data and then recompresses the remaining data, the data that remains gets refiltered and suffers more loss than that just due to the data cropped out. On the other hand, both mp3 and jpeg support something that could be termed lossless cropping as long as you cut on the data boundaries (packet in mp3, 8x8 block on jpeg) where the data you crop out obviously gets thrown out, but the remaining data does not get refiltered with its resulting additional informational loss. Jeff Yes, that's it. When people talk about lossless jpeg modifications, in 99% they are referring to elimination of cumulative losses introduced by repeated compression and decompression. (And the other 1% ... there is a kind of JPG-based format that is lossless, but there is almost not support for it in common applications and it has poor compression ratio and hence negates the advantage of classic JPG). -- Vlasta ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] select region inside a rectangle
Dear all, I'm a Gimp newbie, using it for a long time but at an amateur level. I have the following (hopefully simple) problem: given two rectangles with a common border, is there a way to select the region *inside* one rectangle (to fill it with another color), without affecting the contents of the other rectangle? I attached a .png file just for illustration, I hope attachments are allowed. The problem is of course simplified, in the real problem I have different shapes for each rectangle (but still with comon borders, like in maps). Thanks for any hint, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd. 050025 Bucharest sector 5 Romania Tel.:+40 21 3126618 \ +40 21 3120210 / int.101 Fax: +40 21 3158391 attachment: rectangles.png___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] lossless cropping?
I think you mix cropping and resizing :). Greg Chapman wrote: Hi, On 02 Feb 09 08:24 Johan Vromansjvrom...@squirrel.nl said: Lossless resizing? How do you envision that? 1. Read the file 2. Separate image segment from, Comment, EXIF, IPTC, and other data segments 3. Delete just those bytes that refer to the unwanted parts of the image 4. Reassemble the file, with any required housekeeping bytes edited 5. Resave As others have said - not something that the GIMP does. Greg Chapman ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Free textures
On Mon, Feb 02, 2009 at 01:29:18PM +0100, Claus Cyrny wrote: Could you check if this file is a valid zip file? Sorry, the file got corrupted somehow. I'm using Ubuntu's archive manager, and it seems that there's a problem with zip files. I now created a tar.gz archive. I'm not sure if utlilites such as WinZip support this, but currently I have no other option. (I could also try .jar, which I never used before). WinZip does support tar.gz JAR is just a zip file with some extra metadata I would be _shocked_ if you couldn't just zip this yourself. It isn't hard, if you want maximum compression... zip -9r ArchiveName.zip Directory_To_Be_Zipped Additional_Files_If_Needed Jeff -- The man who does not read good books has no advantage over the man who cannot read them. -- Mark Twain signature.asc Description: Digital signature ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Free textures
On Mon, Feb 2, 2009 at 5:38 AM, Michael Schumacher schum...@gmx.de wrote: Von: Claus Cyrny claus.cy...@web.de http://home.arcor.de/ccyrny/downloads/textures.zip Could you check if this file is a valid zip file? Sure doesn't work on my system, unzipping resulted in a bunch of error messages and only two files. alligator_skin.xcf wood_03_th.jpg I could display the jpg, but the gimp (2.6.4 on fedora10) would not open the xcf file. The texture look nice, though. Let us know when the archive is fixed. Cheers, Mike == gimp errors from xcf file == Opening '/home/mike/download/gimp/textures/alligator_skin.xcf' failed: This XCF file is corrupt! I could not even salvage any partial image data from it. == unzip errors == Archive: textures.zip warning [textures.zip]: -118 extra bytes at beginning or within zipfile (attempting to process anyway) retry - request = 0x4294967178 error [textures.zip]: attempt to seek before beginning of zipfile (please check that you have transferred or created the zipfile in the appropriate BINARY mode and that you have compiled UnZip properly) (attempting to re-compensate) inflating: alligator_skin.xcf bad CRC 798bf47d (should be e8ddc5fd) file #2: bad zipfile offset (local header sig): 522102 (attempting to re-compensate) file #2: bad zipfile offset (local header sig): 522102 file #3: bad zipfile offset (local header sig): 540531 file #4: bad zipfile offset (local header sig): 969072 file #5: bad zipfile offset (local header sig): 982479 file #6: bad zipfile offset (local header sig): 1136411 file #7: bad zipfile offset (local header sig): 1510528 file #8: bad zipfile offset (local header sig): 1519246 file #9: bad zipfile offset (local header sig): 1618580 file #10: bad zipfile offset (local header sig): 1622909 file #11: bad zipfile offset (local header sig): 2041125 file #12: bad zipfile offset (local header sig): 2049392 file #13: bad zipfile offset (local header sig): 2063763 file #14: bad zipfile offset (local header sig): 2079861 file #15: bad zipfile offset (local header sig): 2097348 file #16: bad zipfile offset (local header sig): 2495533 file #17: bad zipfile offset (local header sig): 2510543 file #18: bad zipfile offset (local header sig): 3248438 file #19: bad zipfile offset (local header sig): 3255407 file #20: bad zipfile offset (local header sig): 3609315 file #21: bad zipfile offset (local header sig): 3963225 file #22: bad zipfile offset (local header sig): 3969733 file #23: bad zipfile offset (local header sig): 4389031 file #24: bad zipfile offset (local header sig): 4400740 file #25: bad zipfile offset (local header sig): 4853493 file #26: bad zipfile offset (local header sig): 4869310 file #27: bad zipfile offset (local header sig): 4995186 file #28: bad zipfile offset (local header sig): 5293026 file #29: bad zipfile offset (local header sig): 5309334 file #30: bad zipfile offset (local header sig): 5664411 file #31: bad zipfile offset (local header sig): 5670298 file #32: bad zipfile offset (local header sig): 6016147 file #33: bad zipfile offset (local header sig): 6020873 inflating: wood_03_th.jpg [m...@localhost textures]$ type textures.zip bash: type: textures.zip: not found ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] lossless cropping?
Hi, On 02 Feb 09 12:44 Alexander Rabtchevich alexander.v.rabtchev...@iaph.bas-net.by said: I guess lossless means the remained part ot the image hasn't been re-encoded (it has the same jpg data as the original image). That was what I understood when I made my initial reply. Hence I described the workings of a jpeg file editor. Compare this with the GIMP, an image editor. In an image editor the image gets recreated from the data that is decompessed on loading the file. This reveals the imperfections of the missing data thrown away when it was initially saved (as one expected with a JPEG file). The edges of that lossy image are then removed and then the file re-saved. Saving creates a new file and compressing the image once more, causing still more data loss to the image. The jpeg file editor simply chops out the unwanted chunks of the existing compressed code from the file and rewrites that to the disk. It does NOT re-compress the file, hence the process is lossless (In as much as it doesn't run a second compression on the original compressed (and and admittedly lossy) data). Greg Chapman ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Free textures
Claus Cyrny wrote: http://home.arcor.de/ccyrny/downloads/textures.tar.gz and http://home.arcor.de/ccyrny/downloads/textures.zip The files should contain an statement regarding the usage and distribution. Currently, distribution by anyone else then you is disallowed under many jurisdictions, and derived works will be complicated from a legal point of view. Michael -- GIMP http://www.gimp.org | IRC: irc://irc.gimp.org/gimp Wiki http://wiki.gimp.org | .de: http://gimpforum.de Plug-ins http://registry.gimp.org | ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Free textures
Jeffrey Brent McBeth wrote: On Mon, Feb 02, 2009 at 01:29:18PM +0100, Claus Cyrny wrote: Could you check if this file is a valid zip file? Sorry, the file got corrupted somehow. I'm using Ubuntu's archive manager, and it seems that there's a problem with zip files. I now created a tar.gz archive. I'm not sure if utlilites such as WinZip support this, but currently I have no other option. (I could also try .jar, which I never used before). WinZip does support tar.gz JAR is just a zip file with some extra metadata I would be _shocked_ if you couldn't just zip this yourself. It isn't hard, if you want maximum compression... zip -9r ArchiveName.zip Directory_To_Be_Zipped Additional_Files_If_Needed Ok, the textures are now available at http://home.arcor.de/ccyrny/downloads/textures.tar.gz and http://home.arcor.de/ccyrny/downloads/textures.zip Claus ;-) -- .:: Claus Cyrny - Webdesign | Grafik | Fotografie ::. :: Website: http://home.arcor.de/ccyrny/ :: :: Fotos: http://photo.net/photodb/slideshow?folder_id=714471 :: :: MySpace: http://www.myspace.com/claus_01 :: :: Qype: http://www.qype.com/place/189992-Claus-Cyrny-Stuttgart :: :: Xing: http://www.xing.com/profile/Claus_Cyrny :: ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] lossless cropping?
Hi Alexander, On 02 Feb 09 09:26 Alexander Rabtchevich alexander.v.rabtchev...@iaph.bas-net.by said: I think you mix cropping and resizing :). I didn't mix them. I just assumed Johan had. Up till now this thread had been exclusively about cropping. Greg Chapman ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Free textures
Von: Claus Cyrny claus.cy...@web.de zip archive: http://home.arcor.de/ccyrny/downloads/textures.zip Could you check if this file is a valid zip file? Michael -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user