GNOME Bugzilla – Bug 328320
Guide placement via the menu option
Last modified: 2008-01-15 13:04:23 UTC
This is on Windows Millenium Edition with gimp 2.2.10 To reproduce go to: Image/guides/new guide AND Image/guides/new guide (By Percent) If you try to set a guide at the END of an image, either horizontally or vertically, it cannot be done. For an 800x600 image this would be at 800 or 600 or 100% (horizontally or vertically). It works fine at 0 pixels or 0% both horizontally and vertically. I can place the guide manually (dragging and dropping) at the locations mentioned above.
Indeed, about to fix this.
Fixed in both branches: 2006-01-24 Michael Natterer <mitch@gimp.org> * plug-ins/script-fu/scripts/guides-new.scm * plug-ins/script-fu/scripts/guides-new-percent.scm: allow guides at the right and bottom edges of the canvas. Fixes bug #328320.
For the record I'm fairly sure I did this intentionally. It took me a while staring blankly at the code before I remembered why but I am fairly sure it was that my primary use case was putting down guides and then using the Guillotine (or other slice tools) in which case it never makes sense to have guides a the window edge. The extra little simplicty in the code didn't hurt, but I probably would have made it possible to put guides at the end of the image if I thought there was a need for it. The script was thrown together very based on a user request and the fact that it was an easy modification to guides new. I never actually expected it to be included with the gimp, I'd much rather see a single plugin which properly understood Units and had a drop down menu allowing you to choose pixels/percent/inches/whatever. I would very much appreciate if you could explain what task you are actually trying to achieve so that I might understand what I overlooked. I would be very interested to know what the use case is here, perhaps I could even come up with a different script that was better suited to the specific task if I knew more. Also I have another script, guides to selection which puts guides around on the bounding box of a selection which might better cover your use case.
The use case is simply placing a guide at the right/bottom side of the image, just as the GUI and the PDB API allow it, I don't think it's an all that mysterious use case :)