Wednesday, June 15, 2011

Shell script to generate images for testing


Recently I was in need of generating sample images for no. of products in my db. I really hate to create a copy of image for each products in my db.

I modified my previous shell script to automate the process of creating random images for given no. of product ids with relatively smaller no. of sample images.


scriptsDir$sh randomImages.sh
Completed generating 74 images from 5 sample images.

Find the Gist at https://gist.github.com/1026973


0 comments:

Post a Comment