Gimp-Forum.net
Straigthening crooked lines? - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Straigthening crooked lines? (/Thread-Straigthening-crooked-lines)



Straigthening crooked lines? - claudione314 - 09-22-2025

Hi y'all! How do I straighten a line? It's not a path, so I can't use any of the path transforms. I can design a path, but that takes time. Is there a tool that can turn crooked lines into straight lines?

Example: the letters in "TANZANIA" look jagged after upscaling.

[attachment=13916]


RE: Straigthening crooked lines? - sallyanne - 09-22-2025

The only way I know of making letters look straight after creating them is to give them a little blur.
The best way to do letters (making sure that antialiasing is checked) so they do not be crooked is do them normally - alpha to select and place a new layer above it, then turn the selection into a path. That doesn't take too long and you can stroke your path too.

Then you are probably better off using the program Inkscape if you want to upscale it. And make a vector ( .svg file) which gimp does not do.


RE: Straigthening crooked lines? - CmykStudent - 09-23-2025

(09-22-2025, 02:24 PM)sallyanne Wrote: Then you are probably better off using the program Inkscape if you want to upscale it. And make a vector ( .svg file) which gimp does not do.

While Inkscape will obviously be the best choice for vector work, we may be getting close to initial SVG export now that we have vector layers in GIMP 3.1: https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/2469 Smile


RE: Straigthening crooked lines? - sallyanne - 09-24-2025

@ CmykStudent  then I shoulda said yet!  Big Grin


RE: Straigthening crooked lines? - cli345 - 09-28-2025

What do you think about this:
Code:
fx_smooth_antialias. 1000000,2,10
fx_smooth_antialias. 100,0,5
in Filters -> G'MIC-Qt -> Various -> Custom Code [Full]

Hope this helps! Smile