Register
It is currently Mon Dec 22, 2014 9:19 pm

BBIPS - Command Line Utilities - Just released !


All times are UTC - 6 hours


Post new topic Reply to topic  [ 9 posts ] 
Author Message
 PostPosted: Thu Sep 07, 2006 3:45 pm   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 673
Location: Des Moines, Iowa
BBIPS - Command Line Utilities - Just released !

I wrote these after working on the main bbips program recently, and decided that individual functions could also be seperate 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 seperate 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 yet
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 alias run bbips functions from the command line one at a time.
# They also change the image your working on, and do NOT make copies !
# THESE ALIAS'S RUN COMMANDS THAT CHANGE IMAGES DIRECTLEY !!!
# 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 DIRECTLEY 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


Top
 Profile WWW  
 PostPosted: Fri Sep 08, 2006 7:43 am   

Joined: Fri Sep 08, 2006 7:30 am
Posts: 1
just installed BBIPS.
And after crashing gThumb yesterday, when I tried to resize 100+ images, and taking a long time to resize whatever amount of images.
BBIPS is a true revelation.

Thanks


Top
 Profile YIM  
 PostPosted: Fri Sep 08, 2006 10:38 am   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 673
Location: Des Moines, Iowa
Glad you like it :) And I appreciate the comments. It's always nice to know someone finds it useful :)


Top
 Profile WWW  
 PostPosted: Fri Sep 08, 2006 1:28 pm   
User avatar

Joined: Tue May 17, 2005 12:55 am
Posts: 86
Location: Big Easy, Louisiana
you never thanked me :roll: and i tell everybody i use it :D


Top
 Profile YIM  
 PostPosted: Fri Sep 08, 2006 1:41 pm   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 673
Location: Des Moines, Iowa
coastie wrote:
you never thanked me :roll: and i tell everybody i use it :D


ha ha ha ha..... big baby :P :lol:

<begin ego stroke>
You KNOW I appreciate everything you do coastie :)
</end ego stroke>

------------------------------


Top
 Profile WWW  
 PostPosted: Tue Oct 10, 2006 10:22 am   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 673
Location: Des Moines, Iowa
Updates: bbips command line utilities updated ......

Modified the following:

bbresize : Now does not use the "size" only "-resize" as needed by imagemagick.
bbsolarize: Fixed solarize function to use the ${1} input. Did not work correctly.
bbips: Added bbips.0.4.0 to the file. Now the most current bbips is included in the download. This is also aliased so it can be run by just typing "bbips" at the command line.

In the install, added line to remove entire .bbips directory if it exists.

All files
http://bbips.org/downloads/bbips-clu.tar.gz

Installer script
http://bbips.org/downloads/bbipsinstall.sh

One line installation/update:
(run this line to update/install bbips with one cut-n-paste line)
Code:
wget "http://bbips.org/downloads/bbipsinstall.sh"; sh bbipsinstall.sh; rm -f bbipsinstall.sh


Top
 Profile WWW  
 PostPosted: Tue Oct 10, 2006 10:27 am   
Site Admin

Joined: Tue May 17, 2005 7:31 pm
Posts: 251
Location: Georgia
Nice work on bbips... just a suggestion (i noticed your warning above about the no copies made) why not create a .originals directory and copy all the images in the current working directory there?

Code:
mkdir -p .originals
for i in *.jpg
do
     cp ${i} .originals/${i}.orig
done


ofcourse that's extremely loose coding... but i think you get my idea :)


Top
 Profile  
 PostPosted: Tue Oct 10, 2006 10:56 am   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 673
Location: Des Moines, Iowa
The command line utilities are meant to be "scriptable" ..... one of the utilities is "bbcopy" THAT will create a copy of all the images in the directory. So, creating a special function to do that is redundant and defeats the command line idea I was shooting for.

Not only do we have the bbcopy to create backups when needed, but we also have the normal bbips (now also installed with the command line stuff as well)...... The NORMAL "bbips" DOES create and work on COPIES only.....

With the bbips command line utilities.... you now have the capability to do stuff like:

Code:
#!/bin/bash

cd /home/myusername/photos/wedding

bbcopy weddingcopy
cd weddingcopy
bbborder black 6
bbatxt "Wedding 10-1-2006"
bbgrayscale


This would COPY the images in the dir wedding, and then move into the copied dir and then put a black border 6 pixels in size on the images then would add the text "Wedding 10-1-2006" to each pictures and then would change all images to black and white........ The combinations are endless, and as I add more functions, even more options will become available.

The bbips command line utilities are created in the spirit of Linux.... unforgiving, and assumes you KNOW what your doing ;) :lol: :lol:


Top
 Profile WWW  
 PostPosted: Wed Oct 11, 2006 9:16 am   
Site Admin

Joined: Tue May 17, 2005 7:31 pm
Posts: 251
Location: Georgia
ahh... didn't realize you had that as an option (guess it would help to read ALL the code) :wink:


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP