BBIPS - Command Line Utilities

0 Likes

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"



  • Extracts everything from bbips-clu.tar.gz to "~/.bbips"


  • Removes the file bbips-clu.tar.gz (cleanup)



  • Checks to see if your .bashrc file has already been modified


  • If .bashrc hasn't been modified, sources in the bbipsbashrc file.


  • 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

Labels:

Collateral
Comment List
Anonymous
Related Discussions
Recommended