gimp-plugins-justice / gimp-deskew-plugin Goto Github PK
View Code? Open in Web Editor NEWGIMP Deskew plugin by Karl Chen
License: GNU General Public License v2.0
GIMP Deskew plugin by Karl Chen
License: GNU General Public License v2.0
Sample image: https://imgur.com/a/PU2K3g8
GIMP 2.8.22 (also an earlier version of 2.8.x, but don't remember which)
EDIT: Windows 10 version 1803 build 17134.345
I copied the 1.1 EXE and two DLLs to the /lib/gimp/2.0/plugin folder and restarted Gimp.
The deskew option is available in the Layer->Transform menu. When selected a progress bar progresses and a Transform Layer operation shows in the Undo History. However, the image is unchanged.
I'm not sure if this is a bug, or I'm doing something wrong, or it can't handle black backgrounds (doesn't seem to work on white, either), etc..
I tried installing it in ubuntu 20.04 according to the instructions. At first, it complained about some dependencies:
$ ./autogen.sh
I am testing that you have the required versions of autoconf,
automake, glib-gettextize and intltoolize...
checking for autoconf >= 2.54 ...
You must have autoconf installed to compile GIMP Deskew Plug-In.
Download the appropriate package for your distribution,
or get the source tarball at ftp://ftp.gnu.org/pub/gnu/
checking for automake >= 1.6 ...
You must have automake 1.6 or newer installed to compile GIMP Deskew Plug-In.
Download the appropriate package for your distribution,
or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/
checking for glib-gettextize >= 2.0.0 ...
You must have glib-gettextize installed to compile GIMP Deskew Plug-In.
glib-gettextize is part of glib-2.0, so you should already
have it. Make sure it is in your PATH.
checking for intltool >= 0.17 ...
You must have intltool installed to compile GIMP Deskew Plug-In.
Get the latest version from
ftp://ftp.gnome.org/pub/GNOME/sources/intltool/
Please install/upgrade the missing tools and call me again.
So I installed them by using:
$ sudo apt install autoconf automake libglib2.0-dev intltool
I ran the autogen.sh again, but it still complains about automake, despite having version 1:1.16.1-4ubuntu6 installed.
$ ./autogen.sh
I am testing that you have the required versions of autoconf,
automake, glib-gettextize and intltoolize...
checking for autoconf >= 2.54 ... 1
yes (version 2.69)
checking for automake >= 1.6 ...
You must have automake 1.6 or newer installed to compile GIMP Deskew Plug-In.
Download the appropriate package for your distribution,
or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/
checking for glib-gettextize >= 2.0.0 ... 1
yes (version 2.64.3)
checking for intltool >= 0.17 ... 1
yes (version 0.51.0)
Please install/upgrade the missing tools and call me again.
So I assumed the script is not prepared to detect automake 1.16. I edited it to add the option for that version
elif (automake-1.16 --version) < /dev/null > /dev/null 2>&1; then
AUTOMAKE=automake-1.16
ACLOCAL=aclocal-1.16
But now it ends with this error:
(...)
checking for GIMP... no
configure: error: Package requirements (gimp-2.0 >= 2.2.0 gimpui-2.0 >= 2.2.0) were not met:
No package 'gimp-2.0' found
No package 'gimpui-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GIMP_CFLAGS
and GIMP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Configure failed or did not finish!
I guess it expects gimp-2.0, but gimp-2.1 is installed in my system.
Any idea?
I found this trick from BIMP plugin to detect user dir:
SYSTEM_INSTALL_DIR = $(shell gimptool-2.0 --dry-run --install-admin-bin ./bin/bimp | sed 's/cp \S* \(\S*\)/\1/'|tr -d [\'])
USER_INSTALL_DIR = $(shell gimptool-2.0 --dry-run --install-bin ./bin/bimp | sed 's/cp \S* \(\S*\)/\1/'|tr -d [\'])
so we can use here like:
$ gimptool-2.0 --dry-run --install-bin deskew | sed 's/cp \S* \(\S*\)/\1/'|tr -d [\']
/home/alberto/.config/GIMP/2.10/plug-ins/deskew/
$ gimptool-2.0 --dry-run --install-admin-bin deskew | sed 's/cp \S* \(\S*\)/\1/'|tr -d [\']
/usr/lib64/gimp/2.0/plug-ins/
Do you think this can be added to autotools scripts? like --enable-local-install
or similar
This plugin is awesome. is there any chance to get it working for Gimp 2.10?
Would be really appreciated.
Thanks again for the awesome work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.