Open main menu

CDOT Wiki β

Changes

BTC640/Images

196 bytes added, 10:06, 12 January 2012
Convert
== Convert ==
 
You'll have to use Linux for this part. Unfortunately there's no graphical linux in our lab (mac/windows only machines) so you'll have to either ssh to matrix or use a machine in a different lab.
Convert is a commandline utility that can be used for format conversion as well as some other manipulations.
<pre>for FILE in `ls *jpg`; do convert $FILE `basename $FILE jpg`gif; done</pre>
* Depending on the complexity of your original image the gif versions may look exactly the same or the quality may be degraded, even though the size of the gif versions is probably larger than the size of the original jpg.
* Write a command to separate the colours from the original into different images (man convert should help),
== Submission ==
After doing all the steps above submit the following files to Moodle (Lab2): step1.jpg, step2.jpg, step3.jpg, step4.jpg, family.dia, family.png, and one of the grayscale images generated by the last step.