Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,778
» Latest member: Donaldboava
» Forum threads: 7,593
» Forum posts: 41,393

Full Statistics

Latest Threads
How to make a watermark o...
Forum: General questions
Last Post: kyolim
Yesterday, 10:05 PM
» Replies: 5
» Views: 13,992
Linux command that does e...
Forum: Other graphics software
Last Post: rich2005
Yesterday, 06:06 PM
» Replies: 1
» Views: 331
reliable Gimp 2.10.38 dow...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
Yesterday, 05:20 PM
» Replies: 2
» Views: 255
Batch Color Saturation
Forum: Extending the GIMP
Last Post: rich2005
Yesterday, 07:53 AM
» Replies: 15
» Views: 11,885
Photo play-time
Forum: Gallery
Last Post: Ofnuts
Yesterday, 07:32 AM
» Replies: 24
» Views: 21,728
BIMP plugin for GIMP 3.10
Forum: Extending the GIMP
Last Post: firefly
09-12-2025, 11:53 PM
» Replies: 2
» Views: 622
pl_stroke_arrows GIMP 3.0...
Forum: Extending the GIMP
Last Post: Scallact
09-12-2025, 04:03 PM
» Replies: 0
» Views: 278
How do you make text circ...
Forum: General questions
Last Post: rich2005
09-12-2025, 07:18 AM
» Replies: 12
» Views: 3,364
New Install, Black Screen...
Forum: OSX
Last Post: akhrameev
09-11-2025, 02:32 PM
» Replies: 3
» Views: 3,023
Trouble changing backgrou...
Forum: General questions
Last Post: tomatoSauce23
09-11-2025, 12:50 PM
» Replies: 6
» Views: 1,530

 
  Script to auto-rotate images to align with text flow?
Posted by: bkpsusmitaa - 06-08-2021, 11:03 AM - Forum: Scripting questions - Replies (8)

Tried search string on the forum:

Quote:Script auto rotate image text flow document

Had been thinking for many years: if an image of a text document could automatically be oriented along the textflow.

I self-learnt some programming out of curiosity. Very elementary programs. I don't have the patience, persistence, or hyper-focus of a programmer. 

Had been thinking in terms of drawing a set of two parallel lines apart from the middle towards the edges, and the maximum number of longest uninterrupted straight line segments that could be drawn between those two parallel lines (from one edge of an image to the opposite edge is quite superfluous) could help auto-orient a document along the direction of the text flow?

Perhaps this is the reason why OCR programs such as Abbyy Finereader could automatically rotate scanned documents?

But have left using Doze and associate programs. Have gscan2pdf and gimagereader. They are nothing compared to Abbyy of 10 years back. But who knows, in the name of PROPRIETARY, what malware/spyware/trojan might have they been inserting, in addition to  regular paid upgradation of Doze and anti-virus, anti-malware and what not software? So I am better off with bits and pieces solution and better safety and security with Free and OSS system.

Is there a script to achieve this very purpose? Auto-rotate such a file to horizontally align the direction of the flow of text with the help of a scirpt? Or any other tool?

Any advice please?

In the end another request: if the post isn't found appropriate for this forum, may I please be sent a copy before deleting it.

Print this item

Sad brushes dialogue missing buttons
Posted by: Bearpecs - 06-08-2021, 03:47 AM - Forum: General questions - Replies (2)

In the attachment is the Brushes Dialogue box I see when I open GIMP.  The documentation says Iʻm supposed to have buttons at the bottom of it for

  • Smaller previews
  • Larger previews
  • View as list
  • View as Grid
  • Open the brush selection dialog
As you can see, I have none of those.
What am I doing wrong?
Thanks



Attached Files Thumbnail(s)
   
Print this item

  Failing on loading script Mac OS X: gimp_check_updates_callback failed
Posted by: frankytanky - 06-07-2021, 11:46 PM - Forum: Scripting questions - Replies (1)

Hi, I had a script that was working for me on Mac OS X


Code:
franky@frank ~ % /Applications/GIMP-2.10.app/Contents/MacOS/gimp -i -b "(let* ( ( image (car (file-png-load 1 "\\""/Users/franky/Desktop/image.png"\\"" "\\""/Users/franky/Desktop/image.png"\\"") ) ) (drawable (car (gimp-image-active-drawable image) ) ) ) (plug-in-colortoalpha 1 image drawable '(0 0 0) ) (gimp-file-save RUN-NONINTERACTIVE image drawable "\\""/Users/franky/Desktop/image2.png"\\"" "\\""/Users/franky/Desktop/image2.png"\\"") ) " -b "(gimp-quit 0)"
 
To run color to alpha, I was working on some shell scripts with a python virtual environment in it this morning and something I've done seems to have confused Gimp - maybe in regards to Python version?

I now get this error when I try to run it: 


Code:
GIMP is started as MacOS application
gimp_check_updates_callback: loading of https://www.gimp.org/gimp_versions.json failed: Operation not supported
batch command experienced an execution error:
Error: eval: unbound variable: \/Users/coopermor/Desktop/Armato-Side-Table_render_shadow_difference.png\

Any ideas? Thanks so much! Happy to provide any additional details that are helpful.

Print this item

  ofn-tartan
Posted by: Ofnuts - 06-07-2021, 03:37 PM - Forum: Extending the GIMP - Replies (13)

Somewhat automated a recent tutorial.


Starting with this:

   

The script produces this:

   

And optionally this:

   

At the usual place.

Slàinte Mhath!

Print this item

  Possible to convert pic pdf to image series?
Posted by: bkpsusmitaa - 06-07-2021, 11:59 AM - Forum: General questions - Replies (8)

Hello and good morning.

I post on Debian user group and forums with the same username, and on Knoppix forums as rajibando.

Have been using gimp, but only for minor uses, for the last 12 years. I don't have any high end technical knowledge on GIMP. Just common sense usage ideas.

I have a pdf file that contains only images.

There is a long process: Right Click on the PDF file ⟶ Open with GIMP ⟶ Import from pdf ⟶ Open as Images ⟶ set dpi and other options ⟶ each image opened.
Then save each image as a separate file.

Is there a shortcut? That is, an automated/batch process, for the above step without actually opening any file on GIMP window?

Print this item

  Gimp 2.10.24 Export window too large.
Posted by: sathv - 06-06-2021, 07:27 PM - Forum: Installation and usage - Replies (4)

Gimp 2.10.24 Export window too large. The save button is not visible. It cannot be reduced further. The monitor is 1366x768.
https://youtu.be/GugrXPzbBQo

Print this item

  Brush painting with background color instead of foreground color
Posted by: oppositeyolkcitizen - 06-06-2021, 06:32 PM - Forum: General questions - Replies (3)

So I'm relatively new to Gimp, and I was working on something when suddenly the brush started painting with the background color instead of the foreground color. It's like this no matter what colors are selected for foreground and background, it always paints in whatever is set as the background color now. I tried updating Gimp (to 2.10.24 revision 3) and resetting preferences and neither of them fixed the problem. Did I accidentally press the wrong thing by accident or something? How do I get it back to normal?

Print this item

  toolbox problem
Posted by: rjkanes - 06-06-2021, 06:07 PM - Forum: General questions - Replies (1)

Hi, I see the following message when I try to find my toolbox: "The chosen recent dock contains a toolbox. Please close the currently open toolbox and try again." This occurs even with a brand new file and image. The toolbox is nowhere to be seen... help!

Print this item

  Smoothing a path: a simple plugin
Posted by: Ottia Tuota - 06-06-2021, 10:50 AM - Forum: Extending the GIMP - Replies (12)

I happened to find a simple algorithm to smooth paths of linear line segments. The site is

https://web.archive.org/web/201903270015...ERPOLATION

The algorithm is a simple geometric construction of control points. Certainly there are much more sophisticated algorithms but this is simple and probably sufficient to most purposes. I made a faithful implementation of it. (I manipulated the formulas a little which gave different insight to their meaning. But I refrain from explaining it here.)

To get the plugin, go to

http://kmarkku.arkku.net/Path_modify_fil...aster.html

scroll to the bottom, and click the right download button ("Simple smooth"). You get a zip file. Unzip it and place the one file it contains (simple_smooth_path.py) in your user's plug-ins folder. Then (re)start Gimp. To use the plugin: in the Paths tab, right-click a path and follow the links Tools > Modify path > Simple smooth.

A picture tells all:

   

This was done with default values. Note that the smoothed path passes through all anchors of the original path. In fact, all anchors are preserved (with one exception, see below) and no new anchors are created; only new handles are made. So the plugin works differently from my recent corners-rounding plugin. To compare the two plugins, look at this:

   

In

https://www.gimp-forum.net/Thread-Roundi...6#pid23626

Rich recalled some old smoothing plugin. By my experiments the effect differs slightly from that of my simple plugin. I guess it uses some more sophisticated algorithm. This new simple plugin uses a simple local geometric construction, and it, for instance, makes no effort to minimize the deviation of the smoothed path from the original one.

Some words about the new plugin:

The GUI asks for 'strength'. Default is 1. Smaller values give tighter bends. There is also an option on how to use the selection: with it you can restrict the effect to a smaller part of the path.

The only option that needs explaining is that the plugin asks "Remove superfluous anchors from straight edges?" Default is "Yes". An example: Suppose you make a rectangular selection, rotate it, and apply "Selection to path". You get something like on the left, with lots of anchors:

   

If you apply here the plugin without removing the superfluous anchors you get what you probably were not after. Namely, all anchors are preserved and the result is not good. But if you keep the default value "Yes" you get what is seen on the right. That is what probably was wanted. Only 4 anchors are kept.

By the way, I had some problems with this option. I fear it may cause trouble in some cases. If so, please tell me and I shall see what I can do.

Print this item

  Tartan (a.k.a. plaid) cloth in a few easy steps
Posted by: Ofnuts - 06-06-2021, 08:27 AM - Forum: Tutorials and tips - Replies (5)

The fundamentals of the tartan cloth (plaid for americans) are well described on Wikipedia and are very simple. They are easy to reproduce on Gimp:

Creating the tartan "tile"

  • Create a small square image (this will be your tartan "tile"). Its side must be a multiple of 4 (for instance, 40x40)
  • Fill it with horizontal bands of color of different widths (usual tartan patterns use three colors, and there is a vertical symmetry).
  • Duplicate the layer
  • Rotate the top layer 90°
  • Add a layer mask to the top layer
  • Bucket fill the mask of the top layer with the attached TartanWarpMask pattern
  • And there you are
   

You can export the image at that point and put it (as .PNG or .PAT) in your patterns folders for later use.

For an immediate test, do Edit ➤ Copy visible and select the "Clipboard" pattern (always first in the list) then bucket-fill
your target image with the pattern

   



Attached Files
.zip   TartanWarpMask.zip (Size: 233 bytes / Downloads: 770)
Print this item