[ubuntu-za] Command line image editor?
Phillip Pare
ptpare at lantic.net
Mon May 4 20:02:53 BST 2009
Walter Leibbrandt wrote:
> Quintin van Rooyen wrote:
>
>> Hey list.
>>
>> Do any of you know of a command line image editor?
>>
>> What I basically want to do is: insert imageA into imageB
>> x=coordinates y=coordinates
>>
>> I want to be able to script this.
>>
>> Does Gimp maybe have an option like this?
>>
>> I googled but so far (page 4 of results) have not com across anything
>> useful.
>>
>> Thanks in advace.
>>
>> --
>> Quintin van Rooyen
>> 0824772477
>> quintin.vanrooyen at gmail.com <mailto:quintin.vanrooyen at gmail.com>
>> The New SA Geek!
>> http://blog.sageek.co.za
>>
> Hi,
>
> I don't know about the specific feature you mentioned, but I recall the
> ImageMagick (imagemagick in the Ubuntu archives) package being described
> as a very powerful command-line toolset for image manipulation.
>
> HTH,
>
>
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
% 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
./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?
Regards
Phillip
More information about the ubuntu-za
mailing list