Batch processing – Resizing and embedding watermarks into images using ImageMagick for Windows and Linux

March 19, 2017

As a response to a recent question I came across, I want to share a simple bash script for embedding a watermark image/logo and resizing multiple images at the same time for online publishing.

In order to use the script below you need to install imagemagick and if you are using Windows you either have to install the cygwin environment or you would have to rewrite this simple script as a bat script. read more

Adjust exif timestamp on command-line with exiftool

November 30, 2013

I just realized that I forgot to change the timezone/time settings in my camera since I am back from Asia (~6month). In order to fix the timestamp on all my photos I made during this time period I used exiftool for doing this on the command-line.

Move all timestamps minus 6 hours for all picture files (JPG and RAW) in current directory. read more

Switch active window via shortcut between two monitors on linux

January 25, 2011

SCRIPT UPDATED: ERROR CORRECTION AND IMPROVEMENTS DEPENDING SOME SPECIAL CONDITIONS 30.1.2011

If I use two monitors in windows environment I use some scrips of the tool active aid http://activaid.telgkamp.de/ to have the ability to switch the active window between both monitors with a shortcut. Since I meanly use Linux on my private pc and laptop I missed this feature badly and I did not find some tool or script which fills this gap. But like the world works as Linux user, if something does not exist, make it on your own: My result is a bash-script which switches the active window between both monitors. This script based on wmiface, a tool which gives you the ability to control windows from a NetWm compatible Window-Manager, so at least KDE and GNOME (I tested it on GNOME). A special requirement for my environment is the ability to switch between to monitors with different resolutions. To use my script you need to install wmiface on your distribution, I think you will not find it in your package manager, but you could download install packages for nearly all huge distributions (or the source) from this site: http://kde-apps.org/content/show.php/WMIface?content=40425 If you use debian (like my on my workstation) choose the ubuntu packages. On my test-system(debian 64 testing) the ubuntu 64 packages works fine. Here is the script, download it or copy it and save it to a file. Give execution rights wiht chmod +x. (I copied it to /usr/bin but this it not necessary. You could run it from every directory.) You should test the script in terminal and if everything works fine you could assign this script to a shortcut with gnome-keybinding-properties. Do not forget to edit the resolution for the left and right monitor in line 10 and 11. If you have more than two monitors you should be able to write your own script based on my work.

SCRIPT UPDATED: ERROR CORRECTION AND IMPROVEMENTS DEPENDING SOME SPECIAL CONDITIONS 30.1.2011

::CODECOLORER_BLOCK_14::

Some hint for google chrome/chromium users, the script does only work if you set the setting in chrome for using the system frame and not the special one from chrome. read more

Acer 1825 use special button above ESC in GNOME for activating/deactivating gyro auto rotation

December 13, 2010

The Acer 1825 has a special Button for recovery purpose (in windows) above the ESC Key to use this button for a arbitrary script following steps are necessary (in general it is the same procedure like shown in this post http://www.ceh-photo.de/blog/?p=200): read more

Bash Script for converting DOS to UNIX textfiles

March 7, 2010

This is a short bash script, which I have written as a homework in my studies. It converts all files in parameters from DOS to UNIX or from UNIX to DOS, depending on their current style.

::CODECOLORER_BLOCK_26::

have fun with it!