After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 162257 - slice tool
slice tool
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Tools
2.0.x
Other All
: Normal enhancement
: Future
Assigned To: GIMP Bugs
GIMP Bugs
: 172498 607301 740313 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-12-26 10:47 UTC by Gezim Hoxha
Modified: 2018-05-24 11:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the new guides would look like this (29.74 KB, image/png)
2004-12-28 17:37 UTC, Gezim Hoxha
Details

Description Gezim Hoxha 2004-12-26 10:47:09 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
Comment 1 Sven Neumann 2004-12-27 18:33:25 UTC
There are several such tools available for gimp. Try perlotine or pyslice.
Comment 2 Gezim Hoxha 2004-12-28 17:37:29 UTC
Created attachment 35259 [details]
the new guides would look like this
Comment 3 Gezim Hoxha 2004-12-28 17:38:35 UTC
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.
Comment 4 Joao S. O. Bueno 2005-01-04 23:05:42 UTC
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. 
Comment 5 Gezim Hoxha 2005-01-05 10:42:27 UTC
 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
Comment 6 Maurits Rijk 2005-01-09 21:30:25 UTC
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
Comment 7 Maurits Rijk 2005-01-14 07:48:37 UTC
Gezim: I released Gimp# 0.5 yesterday. It has a Slice Tool plug-in
(/filters/Web/Slice Tool...) that probably does what you want.
Comment 8 Ramon Ott 2005-01-18 12:22:00 UTC
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
Comment 9 Sven Neumann 2005-04-14 00:09:30 UTC
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.
Comment 10 Michael Schumacher 2005-05-09 17:16:30 UTC
*** Bug 172498 has been marked as a duplicate of this bug. ***
Comment 11 Michael Schumacher 2005-05-10 08:22:22 UTC
This bug should get a more descriptive summary. I tried to come up with one, but
didn't seem to get it right...
Comment 12 Michael Schumacher 2010-01-18 14:13:55 UTC
*** Bug 607301 has been marked as a duplicate of this bug. ***
Comment 13 Antonio Roberts 2010-01-18 14:17:44 UTC
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?
Comment 14 Michael Schumacher 2010-01-18 18:39:55 UTC
Feature requests work best if the requesters add patches :)
Comment 15 Antonio Roberts 2010-01-18 18:55:24 UTC
> 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
Comment 16 Michael Schumacher 2010-01-18 20:10:00 UTC
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
Comment 17 Michael Natterer 2015-07-25 18:10:21 UTC
*** Bug 740313 has been marked as a duplicate of this bug. ***
Comment 18 GNOME Infrastructure Team 2018-05-24 11:20:44 UTC
-- 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.