These shell files may prove to be useful. I keep them
in /usr/local/bin/ and do
not bother with the extension .sh. Do not forget---as I usually do---to type chmod a+x as SU.
The actions are applied to the directory of interest.
This converts all files with the extensions .png, .PNG, .jpg, . JPG files to EPS (encapsulated postscript) files (with the extension .eps). The
originals are kept.
This is used in connection with XETEX and PSTOOLS to import images and graphs.
This batch command reduces all your .png, .PNG, .jpg, .JPG files to the same type of file, but with
an IMAGEMAGICK "sample size" of 500 pixels x 500 pixels.
The originals are kept.
I have similar shell files for generating 600, 850, 100, 1250, 1500 and 2000 pixels x pixels
This is useful if your originals are too big
For really small (thumbnail) files use
This converts all your .png and .PNG images to the JPG format (with the extension .jpg).
This removes all files with the extention: ~ (backup; modify if your file editior has a different backup symbols).
This shell file requires
[5sec.txt] to clear the screen. The files in the directory with the extension .~ are then listed.
There is a five second delay before the deletion takes place.
Often a picture is just a little bit off vertical and you want to straighten it out, but you do not know by how much to rotate. The idea of this file
is that you try incremental values, e.g. 1.0, 1.5, 2.0 degrees. The resulting file has the amount of rotation added to the file name.
You can try various values very quickly and then pick the picture that is vertical. For negative values less than 1.0 degrees, a 0 is required before the decimal point as in this example (rotate is an IMAGEMAGICK command):
rotate -0.4 chevalier.png ==> -0.4degrees_chevalier.png
This command puts a coloured border around all the images in the directory.
Modify the file according to the desired colour and width of the border.
The originals are kept.
This shell file is invoked at start up. It uses KWRITE to display an editable file called [0000_books+reminders.txt] in my home directory
Change the name of the text editor, the name of the file displayed and your home directory, according to what you use.
This is used in connection with KTIMER to have KAFFEINE play one of the myriad versions of
Paul Desmond's "Take Five". This one is by the Isis Big Band..