image ordering by Original Date Time using bash script

2016-01-05 1 min read Bash

Here is the script:

#!/bin/bash -
#===============================================================================
#
#          FILE: imgOrg.sh
#
#         USAGE: ./imgOrg.sh
#
#   DESCRIPTION:
#
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: Amit Agarwal (aka)
#      REVISION:  ---
#===============================================================================

for i in *
do
    if [[ $(file $i) == *image* ]] 
    then
        echo "Image file is :: $i"
        dir=$( exiftool -s -DateTimeOriginal $i | awk -F':' '{print $2"/"$3}')
        mkdir -p $dir
        cp $i $dir/
    else
        echo "Excluding $i"
    fi
done

 

Continue reading

PHP Image gallery with fancybox.

2014-12-09 1 min read Photo Uncategorized

So, I was looking for some quick to setup PHP Image gallery file. I found couple but none of them suited my needs too well. So I had to write my own.

Very simple PHP script to show all the images under ‘images’ folder.

Shows some details in the images.

 

That is all that I wanted and that is all that this script does. So pretty simple single php file. Dependency is on fancybox so you will need the jquery and all but nothing else is required.

Continue reading

Resize all the images in directory.

2010-10-04 2 min read Bash Linux Photo
Geotagger "Solmeta N2 Kompass" for N...
  <dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">
    Image via <a href="http://commons.wikipedia.org/wiki/File:Solmeta_N2_auf_Nikon_D5000_Rueckansicht.JPG">Wikipedia</a>
  </dd>
</dl>

When I take a photo with my DSLR Nikon D5000, the size of the image comes to around 5MB and I know that with my point and shoot camera also it does not come to any lesser than 3MB. Definitely this is quite good to keep the images in the same size for use but when it comes to on-line sharing I don’t think this is the size that is required. I guess mosr of the time 1024×768 is sufficient. Even if you are sending the images in email, you cannot afford to send a lot of images of this size even with a gmail account.

Continue reading

Making your subjects more prominent and stand out in the photos with gimp.

2010-09-10 1 min read Photo

Lets first take a picture that we want to modify. We have done the corrections in the photo that are required like the curves, <a class="zem_slink" title="Colorfulness" rel="wikipedia" href="http://en.wikipedia.org/wiki/Colorfulness">saturation and others. So, here is the photo after the modification. Now we will make the modification to make photo de-saturated other than the subject of interest.

<a href="http://blog.amit-agarwal.co.in/wp-content/gallery/home/DSC_0018.jpg"><img src="http://blog.amit-agarwal.co.in/wp-content/gallery/home/DSC_0018.jpg" alt="DSC_0018" />

Okay, now fire up gimp and open the <a class="zem_slink" title="Image" rel="wikipedia" href="http://en.wikipedia.org/wiki/Image">image in gimp.Once the image is open, on the left bottom of the image, you will see a square. Click on the square and the whole image will become red. Now, select eraser tool and erase the color from the subject of interest.

Continue reading

fotowall – create cool looking wallpapers (collage) on Linux

2010-04-12 0 min read Linux Photo
\"Prachi\"
Image by raj77_in via Flickr

Description of the <a class="zem_slink freebase/en/computer_software" title="Computer software" rel="wikipedia" href="http://en.wikipedia.org/wiki/Computer_software">software:

FotoWall is a creative tool that allows you to layout your photos or pictures in a personal way. You can add pictures, then resize, move, change colors, text, shadows, etc..

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/01/screenshot_001.jpg"><img class="size-medium wp-image-1499" title="Fotowall - start" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_001-300x178.jpg" alt="Fotowall - start" width="300" height="178" />

Continue reading

Photo Compositing with the GIMP

2010-03-25 1 min read Photo

Basing from my previous <a class="zem_slink freebase/en/gimp" title="GIMP" rel="homepage" href="http://www.gimp.org/">GIMP article titled Creating Pseudo-3D Imagery with GIMP, you learned how to do some basic selection manipulation, gradient application, faking <a class="zem_slink freebase/en/depth_of_field" title="Depth of field" rel="wikipedia" href="http://en.wikipedia.org/wiki/Depth_of_field">Depth of Field, etc. In line with that, I’m following it with a new article very much related to the concepts discussed therein but we’ll raise the bar a bit by having a glimpse on <a class="zem_slink freebase/en/compositing" title="Compositing" rel="wikipedia" href="http://en.wikipedia.org/wiki/Compositing">compositing, where we’ll use an existing <a class="zem_slink freebase/en/image" title="Image" rel="wikipedia" href="http://en.wikipedia.org/wiki/Image">image or <a class="zem_slink freebase/en/photograph" title="Photograph" rel="wikipedia" href="http://en.wikipedia.org/wiki/Photograph">photograph and later add in our <a class="zem_slink freebase/en/dimension" title="Dimension" rel="wikipedia" href="http://en.wikipedia.org/wiki/Dimension">2-dimensional element seamlessly with the said picture.

Continue reading

Add a image to the list of background files in gnome

2010-03-23 1 min read Fedora GNOME Photo

In Gnome, when you right click on the desktop background you will get a menu for &#8221;Change Desktop backgound. The images displayed in this menu are quite a few but if you want to add your own (read: more than some 5-6 files) then it takes really some time in using the GUI to add them. And if you want to add a few 10&#8217;s of file, like say 50 then you are done.

Continue reading
Older posts