Apr 26
My Sites: My Blog | My Tech Blog | Follow me on Twitter
----

I’ve known about ImageMagick tools for quite some time now but never dabbled with it. A couple of weeks ago I played with it for some time (notice the new cascaded polaroid pics header above) and was amazed even more. Few of its shining features:

  • It has almost unlimited features to manipulate your images through its tools like convert, montage, mogrify etc and their long list of options.
  • It is available for Windows, Linux and Mac as well.
  • Runs on web servers also (most of those nifty image sites use it for run time image manipulation)
  • It is amazingly fast.
  • Runs on the command line, which means batching of operations can be done and is also good for butter fingered people like me who are clumsy with GUI based image manipulation programs
  • Has modules for interfacing with C, perl, php, C++, C#, java, etc. So, you can create your own applications around it.
  • It’s FREE (as in speech and as in beer)
  • It has an amazing documentation over at imagemagick.org and also a very thriving community, so help is just a few clicks away.

As a very rudimentary sample of what it can do for you, take a look at my blog’s header above. I just gave it a few pics and ran a command, and it resized them, turned them into polaroid pics, rotated them at random angles, made the background transparent, strung them together to make a webpage header/banner.

Since the command was specific for the number and names of images, I made a simple perl script to automate the command making process so you can also download this script (link at the end of post) and run it to create your own header. (You might want to tweak the $w and $h variables in the script to specify your header’s width and height). Running it would be like

CODE:
  1. ./pano.pl <imagenames>
  2.  
  3. e.g.
  4.  
  5. ./pano.pl myimages/*

After I made this script, I came across Stas Bekman’s photo gallery which has a much better and cool stack effect with photos. And he generously agreed to share his script (much more sophisticated than my my few lines) with me. His script is also attached below.

Polaroid web header Creation Script

Stas Bekman's Image Stacking script

Let me know if you use any of these scripts (as it is or after modifying them) to create any cool effects.


----
If you liked this post, then you can Subscribe to my feed
Quote of the day: Trust no one. Question Everything. - Deus Ex

written by Shantanu Goel \\ tags: , , , , , , , , , , , , , , ,

Feb 07
My Sites: My Blog | My Tech Blog | Follow me on Twitter
----

A few days ago, I had written about a wonderful blogging tool Blogjet. Now, if you host a wordpress blog, you’d be aware of the fact that for wordpress to be able to upload yor files (images, attachements in post etc) to the server, you have to make the upload directory writable by all. Now, this is a BIG security risk. Some people go to the lengths of CHMOD’ding their upload directory for a short while and after upload, restoring the apt file permissions back. Some upload their files separately through ftp. But Blogjet has a very cool feature. It supports uploading all your non-text content to your webspace not only by using wordpress APIs but also through ftp if wordpress doesn’t have necessary permissions to write files on your server. This saves you a lot of time, that you can then devote on writing the actual post instead of meandering around with the “technicalities”. But many a people have a heart-ache configuring the ftp with Blogjet, although it is quite simple really. This is basically due to conflicting and confusing instructions existing on the ‘net. So, here I present to you step by step, simplest instrutions to configure this. Read on.

Continue reading »


----
If you liked this post, then you can Subscribe to my feed
Quote of the day: "Bravery is not a function of firepower." - JC Denton

written by Shantanu Goel \\ tags: , , , , , , , , , , , , , , , , , , ,