4

How to automate gthumb - 'enhance colours' option?

gThumb is a nice image management software available for GNU/Linux.

When we see an image, we can enhance the colours easily, in gthumb.

But, we have to click a image, then have to click the button for enhancing the colours.

Is there any way to automate the process for clicking all the images in the gthumb collection and apply 'enhance colours' option for all the images?

http://www.screenr.com/1ZB8

Here is a little screencast on how I have to click each image and enhance it.

Looking for automating all this activities.

tshrinivasan
  • 231
  • 2
  • 7

2 Answers2

1

PyAutoGUI (installable through pip) can automate mouse/keyboard and works on Mac/Windows/Linux.

It also has some basic screenshot image recognition capabilities like Sikuli has. You can just supply a png of something you want to click on instead of coordinates.

https://pypi.python.org/pypi/PyAutoGUI

It's fairly well documented as well: http://pyautogui.readthedocs.org/en/latest/

Al Sweigart
  • 11,566
  • 10
  • 64
  • 92
1

I asked a similar question before. Check out Sikuli for your GUI-program automation needs - I think it runs on Linux, it's Python-scriptable, and it's just damned cool.

Alternately, if your "enhance colours" operation could be done using ImageMagick, you could do this in batch mode using ImageMagick's convert command at the command line. Provided ImageMagick supports the kind of enhancement you want, this will be much faster and more reliable than automating a GUI.

Community
  • 1
  • 1
Li-aung Yip
  • 12,320
  • 5
  • 34
  • 49