Novell Home

BBIPS - Command Line Utilities

Novell Cool Solutions: Cool Tool

Digg This - Slashdot This

In Brief

Bash scripts to manipulate entire directories of images.

Vitals

Functional Categories:
  • BASH
  • Posted:7 Sep 2006
    File Size:4KB
    License:GPL
    Download:/coolsolutions/tools/downloads/bbips-clu.tar.gz
    Publisher:David Crouse

    Disclaimer

    Please read the note from our friends in legal before using this file.


    Details

    I wrote these after working on the main bbips program recently, and decided that individual functions could also be separate programs, sometimes making it easier to chain them together to do multiple operations to image files. This is the first release, and this contains 20 separate programs to manipulate your images files.

    To install these simply open a shell and run this command:

    Code:
    wget "http://bbips.org/downloads/bbipsinstall.sh"; sh bbipsinstall.sh; rm -f bbipsinstall.sh

    This will do the following:

    1. Create a directory if not already present "~/.bbips"
    2. Download into that directory "bbips-clu.tar.gz" (http://bbips.org/downloads/bbips-clu.tar.gz)
    3. Extracts everything from bbips-clu.tar.gz to "~/.bbips"
    4. Removes the file bbips-clu.tar.gz (cleanup)
    5. Downloads the file bbipsbashrc (overwrites it if it exists) (http://bbips.org/downloads/bbipsbashrc)
    6. Checks to see if your .bashrc file has already been modified
    7. If .bashrc hasn't been modified, sources in the bbipsbashrc file.
    8. Exits

    Now.... if you follow the directions, you will close this shell and open a new shell (effectively reloading your bashrc file for you). Now, from the command line, run the command "bbhelp"

    #### WARNING WARNING WARNING WARNING
    #
    # These aliases run bbips functions from the command line one at a time.
    # They also change the image you're working on, and do NOT make copies !
    # THESE ALIASES RUN COMMANDS THAT CHANGE IMAGES DIRECTLY !!!
    # THIS SET OF BBIPS FUNCTIONS DOES NOT MAKE BACKUP COPIES OF YOUR IMAGES !!!
    # IT IS SUGGESTED THAT YOU ONLY RUN THESE COMMANDS ON COPIES OF YOUR IMAGES AND NOT THE ORIGINALS !!
    #
    #### WARNING WARNING WARNING WARNING

    What does this stuff do ? -- bbhelp
    These commands run from the command line and edit/modify all the jpegs in a directory.

    Quote:
    BBIPS command line utility help

    WARNING - most bbips commands work DIRECTLY on your images !!!
    It is recommended that you work on jpg COPIES ONLY to prevent loss of originals.

    bbcopy | Create a directory and COPY all images into it.
    ------------------
    bbresize | RESIZEs all images width x height
    bbrotate | ROTATEs all images clockwise x number of degrees
    bbflip | FLIPs images top to bottom vertically.
    bbflop | FLOPs images side to side horizontally.
    bbatxt | ADDS TEXT to images.
    ------------------
    bbborder | Creates a border on all images color x size
    bbgrayscale | Converts images to Black and White
    bbsepia | Converts all images to SEPIA toned x percentage
    bbpaint | Simulates an oil painting on all images
    bbnormalize | Normalizes all images
    bbcolorize | Colorizes all images. Format rgb.
    bbgamma | Gamma correct for all images
    bbsolarize | Solorizes all images.
    ------------------
    bbhelp | This lists the bbips command alias's
    bbindex | Creates a index.jpg of all .jpg (not .JPG) files.
    bbgzip | Creates a GZIPped file containing all the images.
    ------------------
    bbapcom | APpend COMments to the images.
    bbrecom | Displays (REads) COMments on all images.
    bbwrcom | WRites COMments to all images, overwriting any existing comments.



    If you find these useful..... let me know. Feedback is always appreciated.

    Crouse
    http://usalug.org/phpBB2/viewtopic.php?p=84980

    Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

    © 2014 Novell