[ubuntu-za] Command line image editor?
Quintin van Rooyen
quintin.vanrooyen at gmail.com
Tue May 5 05:01:20 BST 2009
My script is hard coded to the directory structure I am running it in, and
you need to install imagemagick to run the "compose" command.
I tried copying your code into a file called webcam:
> #/bin/bash -x
>
> curl http://www.wildcam.com/public/cams/image_kwa.jsp | grep
> "http://us.images.wildcam.com/camimages" | awk '{print $8}' | awk -F =
> '{print $2}' | awk -F \> '{print $1}' | tee ~/Scripts/gtkdeskinf/image
>
> wget -i ~/Scripts/gtkdeskinf/image -O ~/Scripts/gtkdeskinf/image.jpg
> composite -gravity center ~/Scripts/gtkdeskinf/image.jpg
> ~/Pictures/wood.png woodtest1.png
> cp woodtest1.png ~/Pictures/woodtest.png
>
> I then installed cur and tried to run webcam from a terminal. This is
> the output that I got:
>
>
> phillip at voogdy-study:/media/PHILLIP4G$ ./webcam
> tee: /home/phillip/Scripts/gtkdeskinf/image: No such file or directory
Run the following command to fix this:
mkdir ~/Scripts && mkdir ~/Scripts/gtkdeskinf
My script is looking for the specific file in the specific folder that it is
told to look in. I am working on an improved version.
>
> % Total % Received % Xferd Average Speed Time Time Time
> Current
> Dload Upload Total Spent Left
> Speed
> 100 4386 0 4386 0 0 1154 0 --:--:-- 0:00:03
> --:--:-- 3185
> http://us.images.wildcam.com/camimages/20090504/kwa/kwa-1241463093.jpg
> /home/phillip/Scripts/gtkdeskinf/image.jpg: No such file or directory
This is the same issue that appears above - although it is downloading the
image, it does not know were to put it. If you run the above command it
SHOULD fix this problem.
>
> ./webcam: line 6: composite: command not found
> cp: cannot stat `woodtest1.png': No such file or directory
> I have obviously done something wrong: Any suggestions?
My current backround image is called woodtest.png, and I combine the
different images into woodtest1, when the script fails at step 1 above, it
will not create woodtest1.png, thus the cp (copy) command will not run if it
does not find the file.
Finally you should run: "sudo apt-get install imagemagic" without quotes to
install the program I use to combine the images.
I am working on an improved version to fix these issues. Let me kwow if you
come right, or I'll just tar the whole shebang and mail it to you, including
my current background image.
>
>
> Regards
>
> Phillip
>
> --
> ubuntu-za mailing list
> ubuntu-za at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-za
>
--
Quintin van Rooyen
0824772477
quintin.vanrooyen at gmail.com
The New SA Geek!
http://blog.sageek.co.za
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-za/attachments/20090505/3cd99911/attachment-0001.htm
More information about the ubuntu-za
mailing list