On August 29, 2001 01:43 am, Nico De Ranter wrote: > Howdy, > > I'm afraid this is not realy Debian related but I'm not sure where > to turn to otherwise and you guys seem to now everything anyway :-) > > I'm looking for a (free) tool (Linux or Windows, Linux prefered ofcourse) > to cut up an image in rows and columns. I'm writing a webinterface to my > ethernet switches, I have a drawing of the switch but I would like to be > able to color the ports depending on some criteria. I figure the easiest > way to do this is to cut up the image, create an HTMl table that fits it > back together and fill in the correct images for the > status of the ports. I tried a number of image editors to cut up > the original image but I found no program that is able the at least > cut an image into two new images. In stead I have to select a part, > cut it into a new image, select another piece... But I always end up > having pieces with 1 line too much or missing :-(. There has to be > something outthere... > > Thanks in advance, > > Nico > > --------------------------------------------------------- > "It has been said that there are only two businesses that > refer to customers as users: illegal drug trade and > the computer industry." > --------------------------------------------------------- > Nico De Ranter > Sony Service Center (SDCE/VPE-B) > Sint Stevens Woluwestraat 55 (Rue de Woluwe-Saint-Etienne) > 1130 Brussel (Bruxelles), Belgium, Europe, Earth > Telephone: +32 2 724 86 41 Telefax: +32 2 726 26 86 > e-mail: [EMAIL PROTECTED]
This is easy to do if you are using TheGimp. What you need to do is use guides, and then make a selection that follows the guides, you will have perfectly sized selections every time. Basically, click on one of the rulers, and drag in to the image, it will drag move a line there. Move enough of these lines to create a grid like the table that you want to split your image in to. Then make sure you have "Snap To Guides" enabled in the view menu, and just make a square selection, it should snap to the guides. Then just copy, and paste to a new image. Rinse and repeat as necessary. Hmm.. this has got me thinking, this kind of thing is very useful and could probably be automated, I should write some gimp scripts to automate the process... but I digress. Hope this works for you as good as it worked for me :D -- Kamil Kisiel www.speechlessarts.com