It is currently Thu Mar 28, 2024 4:34 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: GIMP Deskew v1.1 plugin released
PostPosted: Sun Oct 26, 2014 8:24 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Sep 20, 2011
Posts: 53
Hey gang,

I've just released an update to Karl Chen's old plugin called 'Deskew'. The plugin is originally intended to fix skewed scanned documents and relies on 3rd party code to do so. It has no options whatsoever and just does the job.

The updates to Karl's code have been sitting in my private Git repo for a while, but this was really silly, so here it is.

Changes in v1.1:

— Deskew has been relocated to 'Layer -> Transform' menu
— Newer plugin template code
— Support for more recent versions of automake
— A few i18n fixes
— The code fixed to use GIMP 2.8 API
— The build system fixed to properly install the plugin's executable file on Linux

Steve Lessard provided a fix for the build system, and Michael Natterer provided a few actionable advises on API and installation.

Source code downloads are here: https://github.com/gimp-plugins-justice ... s/tag/v1.1

Note that I'm not qualified to make public builds for Windows and Linux, and I don't even have an access to a Mac system. Building from source code on Linux works for me. If a reputable community member provides any builds, I'll happily publish them.

This is pretty much a maintenance release. I'm not (yet?) qualified to make any substantial changes to the code.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Sun Oct 26, 2014 8:37 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Thanks Alexandre!
We have nice folks here who can compile for Windows.


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Sun Oct 26, 2014 8:45 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
BTW, would be nice to have it shipped with the standard gimp package.
Does it work in 2.9?


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Sun Oct 26, 2014 8:56 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 20, 2011
Posts: 53
Yes, it does work in GIMP from Git master, although once v2.10 is out, a few things will have to be updated.

We [the GIMP team] will need to review which stock plugins are obsolete and which are sorely missing in the default installation. The problem is that any new code needs to have someone maintaining it.


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Mon Oct 27, 2014 6:39 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Windows 64bit. (src files not included)

Attachment:
deskew-1.1_Win64bit.zip [1.94 MiB]
Downloaded 1125 times


Unzip and place all the dll files and the exe in your username/.gimp-2.8/plug-ins folder.
Layer>Transform>Deskew

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Mon Oct 27, 2014 12:04 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Alexandre, any chance we get some help from the devs to make G'MIC compatible with upcoming 2.10 ? :mrgreen:


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Wed Oct 29, 2014 2:35 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2231
Location: Poland
Ronounours wrote:
Alexandre, any chance we get some help from the devs to make G'MIC compatible with upcoming 2.10 ? :mrgreen:


A very important question - we look forward to a positive response !


Attachments:
Deskew.jpg
Deskew.jpg [ 147.39 KiB | Viewed 13983 times ]
deskew-1.1_Win_32bit.zip [8.26 KiB]
Downloaded 792 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Thu Oct 30, 2014 5:42 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 591
Thanks, MareroQ. The plug-in is very useful.

_________________
Image


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Fri Oct 31, 2014 11:06 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Has anyone tried Deskew on a sequence of scans
via BIMP plugin for batch processing? Obviously Deskew plugin runs
non-interactively but these plugin parameters show up in BIMP.

What are dummy1,2,3 for and how do you optimize the seed?
Just ignore these settings and run at default?

Image


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Fri Oct 31, 2014 2:38 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2231
Location: Poland
It for me this does not act directly.
Small trick for change of mode - the plugins:
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# based on the idea "Gimpscripter" https://github.com/bootchk/gimpscripter [ http://registry.gimp.org/node/25305]

def plugin_main(image, drawable):

  pdb.gimp_deskew_plugin( image, drawable, 1, 1, 1, 0, 0, run_mode=RUN_INTERACTIVE)
 
if __name__ == "__main__":
  from gimpfu import *   
 
  register(
    "python-fu-plug-in-deskew-bimp", 
    "For using BIMP",
    "This plugin was created using 'GimpScripter...",
    "Bootchk - modified MareroQ",
    "GimpChat",
    "No copyright date",
    "<Image>/Layer/Transform/Deskew for BIMP",
    "*",
    [],
    [],
    plugin_main,
     
    ) 
   
 
  main()


Attachments:
Deskew for BIMP.png
Deskew for BIMP.png [ 256.09 KiB | Viewed 13772 times ]
plug-ins_deskew_for_BIMP.zip [658 Bytes]
Downloaded 439 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Fri Oct 31, 2014 11:56 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
@ MareroQ Interesting.... why does it not work directly in bimp?
BTW, in the comments section on gimp plugin registry site there is a script
for batch processing within GIMP's ScriptFu console panel. Have you tried it?

I just don't have skewed scans or images to test all this stuff. (where were they when I needed them most? lol)


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Tue Nov 18, 2014 5:36 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Sep 20, 2011
Posts: 53
Oh dear, I didn't check back after a while...

@Rod

Thanks a lot! Your build has been added to the release.

@K1TesseraEna

I'll see what I can do, thanks for the report.

@Ronounours

It's best to join IRC to discuss this. It's #gimp on irc.gimp.org


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Tue Nov 18, 2014 8:04 pm  (#13) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I would like to see Freetype back in gimp with this option added

Multiline Text
Switch from GtkEntry to GtkText to enter text and add simple stuff like line spacing, left/right-aligned and centered.

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Wed Nov 19, 2014 6:42 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Graechan wrote:
I would like to see Freetype back in gimp with this option added

Multiline Text
Switch from GtkEntry to GtkText to enter text and add simple stuff like line spacing, left/right-aligned and centered.

I would also like to see this. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Wed Nov 19, 2014 6:53 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Sep 20, 2011
Posts: 53
Graechan wrote:
I would like to see Freetype back in gimp with this option added
Multiline Text
Switch from GtkEntry to GtkText to enter text and add simple stuff like line spacing, left/right-aligned and centered.


Could you please explain why multiline text with user-defined alignment in GIMP2.8 doesn't work for you?


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Wed Nov 19, 2014 1:33 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2231
Location: Poland
Stupid question - v 32 bit is bad - I delete an attachment?

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Thu Nov 20, 2014 7:26 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
MareroQ wrote:
Stupid question - v 32 bit is bad - I delete an attachment?

Marero what is wrong with it? Do you want me to compile 32 bit also?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Mon Nov 09, 2015 5:57 pm  (#18) 
Offline
New Member

Joined: Nov 09, 2015
Posts: 1
Hello. I'm encountering an issue with deskew v1.1 plugin
I'm running GIMP 2.8.14 with windows 10
I get this message when starting GIMP:
"Application error on startup... application unable to start correctly 0xc000007b"
Any ideas on how to fix this.
Thanks
Peter


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Tue Nov 10, 2015 6:38 am  (#19) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
saltedogg wrote:
Hello. I'm encountering an issue with deskew v1.1 plugin
I'm running GIMP 2.8.14 with windows 10
I get this message when starting GIMP:
"Application error on startup... application unable to start correctly 0xc000007b"
Any ideas on how to fix this.
Thanks
Peter

The version i compiled here in this thread is for 64 bit GIMP. If you are running GIMP 64 bit it should work.
I haven't run the plug-in for quite some time.

EDIT:
It still works fine for me.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GIMP Deskew v1.1 plugin released
PostPosted: Thu Jul 08, 2021 8:23 am  (#20) 
Offline
New Member

Joined: Jul 07, 2021
Posts: 3
Hi -

My first post; I'm a total GIMP newbie. Running Gimp-2.10.24 on Win7Pro, 64bit. I've loaded the unzipped deskew components in my plug-in directory as per the instructions. On startup, I get the following error msg:

Attachment:
GIMP-2-10_deskewErrorMsg.JPG
GIMP-2-10_deskewErrorMsg.JPG [ 71.86 KiB | Viewed 3010 times ]



Any ideas or suggestions?

Thanks,
Jack


Top
Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts GIMP 2.10.18 released

5

No new posts Attachment(s) Gimp 2.10.10 Released

16

No new posts Attachment(s) GIMP 2.10.36 Released

29

No new posts Attachment(s) 2.10.28 released/gmic resolved

41

No new posts Attachment(s) Samj has released 2.10.21 v2 portable for windows

1



* Login  



Powered by phpBB3 © phpBB Group