Difference between revisions of "CSC220 Lab 2 2010"
(Created page with '<center> <font size="+2">Page under construction!</font> <br \>300px </center> =Creating Images= * This part of the lab uses a very nice and power…') |
(→Creating Images) |
||
Line 5: | Line 5: | ||
=Creating Images= | =Creating Images= | ||
− | * This part of the lab uses a very nice and powerful program that is often bundled in the various Linux distribution (Fedora, Ubuntu, Suse, etc): [http://www.imagemagick.org/script/index.php ImageMagick]. | + | * This part of the lab uses a very nice and powerful program that is often bundled in the various Linux distribution (Fedora, Ubuntu, Suse, etc): [http://www.imagemagick.org/script/index.php ImageMagick]. It is a collection of different programs that allow for very clever and powerful image manipulations. |
+ | |||
+ | ==Part 1== | ||
+ | |||
+ | * There are 3 images in the 220a public_html folder, called 220a.jpg, 220b.jpg, and 220c.jpg. You can see them by opening this URL: http://cs.smith.edu/~220a/ | ||
+ | |||
+ | * use '''wget''' (see [[CSC220 Lab 1 2010|Lab 1]]) to retrieve all three images into your account. Use a for-loop! Something like this is a good start: | ||
+ | |||
+ | for i in a b c ; do | ||
+ | echo $i | ||
+ | echo 220${i} | ||
+ | done | ||
+ | |||
+ | * verify that you got the images by displaying them with the '''display''' command (also part of imagemagick). Example: | ||
+ | |||
+ | display 220a.jpg |
Revision as of 10:40, 14 September 2010
Creating Images
- This part of the lab uses a very nice and powerful program that is often bundled in the various Linux distribution (Fedora, Ubuntu, Suse, etc): ImageMagick. It is a collection of different programs that allow for very clever and powerful image manipulations.
Part 1
- There are 3 images in the 220a public_html folder, called 220a.jpg, 220b.jpg, and 220c.jpg. You can see them by opening this URL: http://cs.smith.edu/~220a/
- use wget (see Lab 1) to retrieve all three images into your account. Use a for-loop! Something like this is a good start:
for i in a b c ; do echo $i echo 220${i} done
- verify that you got the images by displaying them with the display command (also part of imagemagick). Example:
display 220a.jpg