It is currently 21 Jan 2018, 18:14

GIMP Python Fu ScriptsLayers Auto crop then resize to selection height Script for GIMP (Showcase | Slideshow)

Share your Python Fu scripts for GIMP here
Post Reply
User avatar
trandoductin

Forum Member
View: Showcase | Slideshow
Topic Posts: 1/4
Posts: 189
Joined: 25 Sep 2016, 17:21
Cash on hand: 317.58 GLP
Gender: Guy
Location: Canada
Website: https://gimplearn.net
x 7
Contact:
Canada

Layers Auto crop then resize to selection height Script for GIMP

Post#1 by trandoductin » 16 Oct 2016, 19:41


This script was designed for Rod on gimpchat.com to aid in Custom Font creations/conversion to help him on "His Mission". :)
This script is to aid you in the process of cropping your characters for Creating Custom Font .xcf to be used with Custom Font Script

After having all your characters that define a font stack all on top of each other and in their place.
Make a selection box that defines how high your font will be that includes all the characters lower-case, upper-case and low letters such as "y" and "g".
Then run script below. It'll auto-crop all your characters, then resize all the layers to have the same height as the selection box. So each character will have variable width depending on how wide the characters are (if a path isn't defined). But the height will be all the same so that when you run Custom Font script the characters will line up on the same line (baseline).
:download:
layers_auto_crop_resize_to_selection_height.zip #
Zipped .py file (unzip, put in your GIMP's /plug-ins/ folder)
(1.19 KiB) Downloaded 77 times
Script will be available under Image > Python-Fu > Layers Auto Crop Resize To Selection Height
0 x



T.
please don't message me, message tim(admin) instead as I am tim(admin). I don't check this account very often.
To message tim(admin), click here. Thanks.

Registered members enjoy ads-free content
User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 2/4
Posts: 2054
Joined: 27 Sep 2016, 20:35
Cash on hand: 12,003.27 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 7
x 430
United States of America

Post#2 by Pat625 » 08 Jan 2017, 00:26


Tin,
I cannot get the script to work for me. I have followed your instructions, but after the script runs, it shows outline of the height box but there is no cropping done. I had moved all the characters to the left edge, had them stacked up, made the selection box. I'm not sure what else to do to get it to work. What am I missing?
0 x




User avatar
tim
Administrator
View: Showcase | Slideshow
Topic Posts: 1/4
Posts: 2071
Joined: 25 Sep 2016, 17:16
Cash on hand: 7,180.19 GLP
Bank: 42,250.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1106
x 240
Contact:
Canada

Post#3 by tim » 08 Jan 2017, 13:35


it crops to your current selection and only based on your selection height.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 2/4
Posts: 2054
Joined: 27 Sep 2016, 20:35
Cash on hand: 12,003.27 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 7
x 430
United States of America

Post#4 by Pat625 » 08 Jan 2017, 22:46


Thanks, Tin. I think it worked but I did not know it! I was looking at it wrong! Next time I'll know to trust it.

Thanks again. :learned_something:

Pat
0 x




Post Reply

Last 20 Members Who Visited This Topic

User avatar Pat625 (3), User avatar RJKD (3)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: RJKD
2: animicule
3: Pat625
4: oldmangrumpy
5: Pat625
6: oldmangrumpy
7: Conbagui

Who is online

Users browsing this forum: No registered users and 3 guests