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.
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.
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?
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
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?
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!
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.)
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:
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.