Prototyping 5 Feb 2013

From XPUB & Lens-Based wiki
Revision as of 16:09, 5 February 2013 by Mths (talk | contribs)

Comparing the analog to the digital via cadavre exquis + imagemagick and some simple file-sharing with netcat.

Drawing

 sleep 60; play -n synth 0.5 sin 800

http://www.imagemagick.org/Usage/draw/

Start by selecting a single imagemagick operation, and test your script.

Passing

Passing an image:

  • IP Addresses

Run the woof script, note the web address it gives. This is a URL with your (dynamically assigned) IP address (the four numbers) plus a port number (after the colon) which be default is 8080.

Listen for a file

nc -l -p [LocalPort] > [outfile]

Listen on [LocalPort], store results in [outfile]

Push a file

nc -w3 [TargetIPaddr] [port] < [infile]

Push [infile] to [TargetIPaddr] on [port]

Afternoon: Digital Cadavre Exquis

slice

Slice up an image, vertically:

convert olifant.jpg -crop 20x +repage +adjoin olifant_20x_%d.jpg

merge

convert -append /file_split*.png /file_vertical.png 
convert +append /file_split*.png /file_horizontal.png

gif

convert +repage file* outputfile_overlapping.gif
convert +repage file* outputfile+coordinates.gif