Remove Invalid characters in Filename.

2010-01-10 1 min read Linux Photo

Sometimes I end up having some invalid characters in filename like ? & and so on.

So simple bash script to get rid of them:

for i in `find . -type f`
do
echo $i
mv $i `echo $i |tr ? _|tr = _ |tr ’&’ ’_’`
done <a name="more">

Picture Collage Maker 2.0

2010-01-06 1 min read Photo

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">

<table CELLSPACING="0" CELLPADDING="0" WIDTH="100%">

<font SIZE="6"><a HREF="http://feedproxy.google.com/~r/photographyblog/~3/8SSu3N8oWRs/">Picture Collage Maker 2.0

<a HREF="http://www.photographyblog.com/news/picture_collage_maker_2.0/"><img SRC="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/mask-bar-533x400.jpg" WIDTH="533" HEIGHT="400" ALIGN="bottom" ALT="News image"/>

Pearl Mountain Software has released Standard and Pro editions of Picture Collage Maker v. 2.0, a simple-to-use Windows program that turns ordinary photos into collages, scrapbooks, invitations, calendars or greeting cards.

<a HREF="http://www.photographyblog.com/news/picture_collage_maker_2.0/">Read more and comment »

<img SRC="http://blog.amit-agarwal.com/wp-content/uploads/amit-agarwal.co.in/~r/photographyblog/~4/8SSu3N8oWRs" WIDTH="1" HEIGHT="1" ALIGN="bottom" BORDER="0"/>

Continue reading

Adding dates to your photos.

2009-10-12 1 min read Linux Photo
Add date in the photograph with a perl script.

#!/usr/bin/perl

if ($#ARGV < 0 )
{
print &#8221;$#ARGV \n&#8221;;
print &#8221;Usage $ARGV[0] filename/dir\n&#8221;;
exit -1;
}

@files = `find &#8221;$ARGV[0]&#8221; -iname &#8221;*jpg&#8221; -print`;

if ($#ARGV > 3 ) { $cmd = 1;}
$count = 1;
foreach $file (@files) {
chomp ($file);

Continue reading

Add border to images from command line using montage.

2008-11-20 1 min read Linux Photo

Adding a border to the images from command line is quite simple. But if you have couple of images in a directory that you want to add border to then it may become quite painful 🙂

So what is the solution. You can simply use a one liner to do the job for you.

for i in *.jpg; do montage -geometry 720×576 -background black -quality 100 $i conv-$i; done

Newer posts