Category Archives: Uncategorized

Create thumbnails with a mask

First we create a mask like this with this script: create_mask.shraw download¬† #!/bin/bash # Author: # Copyright: (c) 2011 GNU Copyright v3 # Name: # Function: create thumbnail mask # Requires: imagemagick (convert) ¬† THUMBRECT=”thumbnail_rectangle.png” THUMBMASK=”thumbnail_mask.png” SIZE=96 # … Continue reading

Posted in Uncategorized | Leave a comment

Use a shell function, check if a file exists, true or false

This script uses a shell function to check if a file exists (-f). It returns 0 (zero) if the file exists and 1 if it does not exist. You can write your own check functions for checking if a directory … Continue reading

Posted in bash, cut, function, linux, regex, sed, Uncategorized, windows | Tagged , , | Leave a comment