GNOME Bugzilla – Bug 162257
slice tool
Last modified: 2018-05-24 11:20:44 UTC
I think a slice tool for slicing images (web sites) is really useful. As of now in order to slice a website one needs to drag the rulers on to the image and then use guillotine to slice it up. The problem with this is that if you have a web sites with (say) two colums and have two vertical object in those two columns. Further, say one object is taller (has greater height) than the other. In order to slice this kind of a website (right now) you would need to place the horizontal rules at the edge of the objects and one in the middle, but the vertical rulers would need to be placed around the higher object...then one would use the guillotine tool to slice these images and then one would use the rulers again to slice the unused parts of the smaller object...and then again use the guillotine tool to slice. Thus in conclusion, it's just takes too long and it would be much more efficient if you could cut up everything in one go. Now, I know that since the CSS was introduced there is a lesser need for slicing but the need is still there nonetheless. Now I don't know if this makes sense at all, but what could be done is, just allow the rulers that are draged on to the image to be resizable (i.e. they would have to be the full width/length of the image), this could be accompanied by a toolbar button which when clicked would allow you to choose on placing a hori/vertical ruler and then you could place it where ever you wish. I have no idea if this brakes any technical stuff but that's my (non-hackerish way) of doing it. Thanks for your efforts everyone, -Gezim
There are several such tools available for gimp. Try perlotine or pyslice.
Created attachment 35259 [details] the new guides would look like this
Perl-O-Tine and pyslice are not exactly what I'm looking for. These tools USE the guides (that are draged) from the rulers into the images to cut the image and then make and html table accordingly. I'm suggesting though that there be a change in the way guides work (i.e. have the options to set the length for horizontal guides and the width for vertical guides). I hope I make sense. -Gezim P.S.: I hope the attachement above illustrates my wish better.
I've been working using, and on, the py-slice plug-in. I see what you want. I would not say that changing the guides to work like you proposed is feasible. We better think of some alternatives - take a look at the image map plug-in. What would you say of an option there to save as an html table, instead of image-map? Of course, just images with "rectangular" slices could them be used. An UI approach I myself used, in a py-slice improvement that had not been comitted into CVS is an option not to slice an image left most and right most columns on the horizontal guides (and another for not slicing top-most and bottom-most) - that allows me to create HTML menus, with multiple images for the menu buttons, and a single image for each of the menu left and right margins. (I am busy now - search bugzilla for py-slice to try this patch) Can you think of other ways of implementing what you want, without messing with the guides themselves? That could be made into py-slice or some other python plug-in.
Joao S. O. Bueno Calligaris wrote: "What would you say of an option there to save as an html table, instead of image-map? Of course, just images with "rectangular" slices could them be used." The image map plug-in is pretty awesome (thanks to Maurits Rijk) and something like that would work, I think. Here is how it would work. The user would open this tool (which probably could look like image map) and then the options would either be a "selection" marquee (excacly like a ruler) which they could place horizontally or vertically on the image and the other option the user would have is the rectangle "select" one, by which they could select any rectangular shape. When the user is done "selecting" they would just click "slice" or whatever and the images would slice accordingly and also they would have an option to generate a html table from it (like you mentioned). As for this patch you made...I'm affraid I wouldn't know how to try and use it :( but that's the right idea ..to not slice all the way. Now I'm not sure how the new py-slice works...does it just ask for size or can you do it graphically (by just clicking on the edges of where you want the cutting to stop)? -Gezim
I have been playing with the thought of extending the Imagemap plug-in with slice tool functionality. One reason for not doing so would be that it would complicate the user interface for the Imagemap plug-in (even more). If you are willing to use C# plug-ins (http://sourceforge.net/projects/gimp-sharp/) there is hope: right now I'm creating a slicer tool which is directly modelled after the tools found in PSP and PS. The first release of this plug-in will be in Gimp# 0.5, which will be out within a few days. My intention is to have a fully featured slicing tool (with rollovers, etc.) in C#. Maybe some day I could port it back to C (or even add it to the imagemap plug-in) if there would be enough interest in it, but for the time being C# is perfect for this job. I will put a screenshot of the tool on my webpage tomorrow. Maurits
Gezim: I released Gimp# 0.5 yesterday. It has a Slice Tool plug-in (/filters/Web/Slice Tool...) that probably does what you want.
hmm i can't compile mono on my machine. it give's me an error. however: i love your work, but i think a slicer tool of this type should be standardintegrated to gimp 2.3.. but who will do this? i like to, but i'm a script-fu beginner and have no real knowledge (which i think is important) to do this. it would be awesome if you wrote this for the normal gimp as a plug-in! I think there are thousands of people who search a thing like this.. if you like, you can contact me on ott@netstreet.ch Ramon Ott
The slice tool in gimp-sharp is a plug-in for the normal gimp. So is pyslice and perlotine. If none of these is bundled with your gimp installation, then you should file a bug report against whoever packaged your gimp.
*** Bug 172498 has been marked as a duplicate of this bug. ***
This bug should get a more descriptive summary. I tried to come up with one, but didn't seem to get it right...
*** Bug 607301 has been marked as a duplicate of this bug. ***
5 years and still no update to the slice plugin. Could we have it so that the slices are created by using boxes instead of guides which cut through the whole image?
Feature requests work best if the requesters add patches :)
> Feature requests work best if the requesters add patches :) As in code snippets or mock-ups. I'm no programmer, so can't add in any patches but I'll draw up a mock-up soon
Have a look at existing tools specification to get an idea of what a mockup (and preferably the description that comes with it) should contain: http://gui.gimp.org/index.php/Specifications
*** Bug 740313 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/112.