![]() | ![]() |
| My Mic to the World... |
|
|
Source Code The Upload-Cam Perl script is a simple Perl script I wrote for uploading a webcam image file from my PC to my web site. I use it for uploading images for the mobile cam. Basically, what it does is create a thumbnail from a given image and upload (ftp) the original image and the new thumbnail to my web site. The script uses two Perl modules:
To install Image::Magick
Now that you've installed the needed Perl modules you need to configure the script a bit. Download Upload-Cam script Unzip the file you downloaded, open the Perl script in a text editor, and make the following configurations:
That's it for the configurations!Let's see how we use the script It's pretty simple, all you need to do is type: perl upload_cam_image.pl PATH_TO_IMAGE_TO_UPLOAD
I'll show you a real example: perl upload_cam_image.pl an_image.jpg or perl upload_cam_image.pl c:\my_image.jpg or perl upload_cam_image.pl "c:\A folder\an_image.jpg" It's that easy! If you have any questions, requests, found something unclear, or just found the Upload-Cam script useful: . |