Enhance photos quickly with GIMP

2010-06-17 3 min read Fedora Photo

Okay today I will show you how to enhance or make the photo look better with GIMP. Digital photos are good but can be made better with GIMP. I will take you step by step with the process. There are many other things that you can do but I will cover only basic stuff. So here we go.

Take a photo of your choice.

<img class="size-full wp-image-503" title="Monkey" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/dscf5962.jpg" alt="Monkey" width="387" height="542" />

Continue reading

colors in bash -- script to display all the possible colors.

2010-06-06 3 min read Bash Fedora Linux

If you wanted to have colors in the bash output (including the colors in PS1-4), don&#8217;t you keep wondering how the color code would look on the terminal. So, I wrote this small script to show the complete color codes. This is how the output would look:

\"Bash

And here is the script:

  <td>
    <div class="text codecolorer">
      #!/bin/bash -<br /> #===============================================================================<br /> #<br /> # &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FILE: &nbsp;colors.sh<br /> #<br /> # &nbsp; &nbsp; &nbsp; &nbsp; USAGE: &nbsp;./colors.sh<br /> #<br /> # &nbsp; DESCRIPTION: &nbsp;Bash colors<br /> #<br /> # &nbsp; &nbsp; &nbsp; OPTIONS: &nbsp;---<br /> # &nbsp;REQUIREMENTS: &nbsp;---<br /> # &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BUGS: &nbsp;---<br /> # &nbsp; &nbsp; &nbsp; &nbsp; NOTES: &nbsp;---<br /> # &nbsp; &nbsp; &nbsp; &nbsp;AUTHOR: &nbsp;Amit Agarwal (AKA), amit.agarwal@amit-agarwal.co.in<br /> # &nbsp; &nbsp; &nbsp; COMPANY: &nbsp;Individual<br /> # &nbsp; &nbsp; &nbsp; VERSION: &nbsp;1.0<br /> # &nbsp; &nbsp; &nbsp; CREATED: &nbsp;09/21/2009 06:12:07 PM IST<br /> # &nbsp; &nbsp; &nbsp;REVISION: &nbsp;---<br /> #===============================================================================<br /> <br /> for c in `seq 0 255`;<br /> do<br /> t=5;<br /> [[ $c -lt 108 ]]&&t=0;<br /> for i in `seq $t 5`;<br /> do<br /> #Display the codes also for easier lookup in terminal<br /> <!--loginview start-->echo $i;${c}<!--loginview end--><br /> echo -e "<a class="zem_slink" title="Path (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Path_%28computing%29">\\</a>\e[0;48;$i;${c}m|| $i:$c `seq -s+0 $(($COLUMNS/2))|tr -d \'[0-9]\'`\\e[0m";<br /> done;<br /> done<br /> <br /> # setup_colors - Adds colors to array CC for global use<br /> # 30 - Black, 31 - Red, 32 - Green, 33 - Yellow, 34 - Blue,<br /> # 35 - Magenta, 36 - Blue/Green, 37 - White,<br /> # 30/42 - Black on Green \'30\\;42\'<br /> <!--loginview start-->function setup_colors(){<br /> declare -a CC;<br /> for i in `seq 0 7`;<br /> do<br /> ii=$(($i+7));<br /> CC[$i]="\\033[1;3${i}m";<br /> CC[$ii]="\\033[0;3${i}m";<br /> done;<br /> CC[15]="\\033[30;42m";<br /> R=$\'\\033[0;00m\';<br /> X=$\'\\033[1;37m\';<br /> export R X;<br /> }<br /> function display_colors(){<br /> for i in $(seq 0 $((${#CC[@]} - 1))); do echo -e "${CC[$i]}[$i]\\n$R"; done<br /> }
    </div>
  </td>
</tr>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
\"Reblog
Enhanced by Zemanta

Auto Adjust Photo color and contrast in Windows, Mac and Linux.

2010-05-19 1 min read Photo

<a href="http://log69.com/aaphoto_en.html" target="_blank">Auto Adjust Photo is a tool that is very helpful if you are looking at quickly adjusting the photo. This tool does a good job of automatically doing color correction. Here is example:

<img class="size-full wp-image-624" title="before" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/dscf5768_new.jpg" alt="Before" width="697" height="522" />

<img class="size-full wp-image-625" title="After" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/dscf5768_new_new.jpg" alt="After" width="697" height="522" />

There is definately a scope of improvement in the processed photo, but if you have a couple of hundred photo&#8217;s and you can get this effect in one liner then nothing like it. Here&#8217;s the one liner

Continue reading

Color in grep output to distinquish the matching entries

2010-02-04 1 min read Linux

Most of the times I end up spending a lot of time to look for the string in the grep output when I do a search. This is quite frustrating and thus I looked at the options for grep command that would make my life easier and there definately is something. Here it is:

export GREP_COLOR=&#8221;5;36&#8221;

But for this to work you would still need to give the &#8221;–color=auto&#8221; option in the grep command. There are two ways to do this, create a alias for grep as &#8221;grep –color=auto&#8221; or specify the same in GREPOPTIONS.

Continue reading

Color output from ls – based on file type

2010-02-04 1 min read Bash Linux

Threre are certain default variables which control the color of the output from the ls command, so we will talk about them today.

The first one is to get the color output from the &#8221;ls&#8221; command. We will look at the various ways to do this:

First is to use this with default colors:

ls –color=auto

Now this will use the default colors which might not go with your liking 🙂 So if you want to change the colors you can use the variable called LS_COLORS.

Continue reading

bash colors

2009-11-16 0 min read Bash
\"People
Image via Wikipedia

For those of the terminal freaks, color is a bliss. But have you tried all the colors in the terminal. Today someone forwarded me a bash one liner for the same. Not sure where he got this from, anyway here is the one liner for you all:

Continue reading
Newer posts