Paperclip provides a way to write your own image processor, which primarily uses the command line tools provided by imagemagick, etc.
Since the scripts you are referring to above are command line tools, it will be pretty trivial to write a processor to use them.
Resources
source
share