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 770915 - New guide with unit selection
New guide with unit selection
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Script-Fu
git master
Other All
: Normal enhancement
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2016-09-05 21:38 UTC by Michael Schumacher
Modified: 2018-05-24 16:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
New guide script with unit selection (1.91 KB, text/plain)
2016-09-05 21:38 UTC, Michael Schumacher
Details

Description Michael Schumacher 2016-09-05 21:38:21 UTC
Created attachment 334857 [details]
New guide script with unit selection

The attached script started out as a reply to https://www.reddit.com/r/GIMP/comments/519czn/create_guides_using_inches_and_not_pixels/ and made me discover that we lack a useful procedure for getting the list of units (or a nice value+unit widget for Script-Fu).

It allows pretty much the same as the current guides-new script - it is in fact based on it - but takes an additional parameter, a unit ID, and adjust the guide position according to the image resolutions.

The script seems to work within the limitations of the current guide infrastructure, namely that guides can only be placed at pixel positions. I haven't done any thorough testing yet, though.

Things get tricky when dealing with fractions of pixels, right now the script uses round them - the original script behavior seems to truncate.
Comment 1 GNOME Infrastructure Team 2018-05-24 16:52:15 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/957.