HOW TO MAKE A SCANNED IMAGE WITH OUTPUT IN GIF OR EPS FORMAT by Grant Gustafson, January 1996 Use the EPSON scanner and Adobe Photo Shop on the PowerMac in JWB120 Place the photo or other material on the scanner surface: +------------------------+ | | | | | | | | | Align on | | the right | | edge =======> | | | | | | | | | +------------------------+ Run Adobe Photo Shop 3.0 on the JWB120 PowerMac. Then jump mouse menus as follows: FILE ==> Aquire ==> Scantastic Set RES 72 Use 72 to make small GIF files. Set Mono Choose 34% to decrease the file size further. Set Prescan Use 600 only after you become a scan expert. Select area to scan with mouse [Hold down button and drag mouse] Set scan [takes time..] A window appears with the scanned image, ready to save in a file, after a few minutes. If the screen clears and nothing happens, then check for a RED light on the scanner, which means ERROR. Cycle the scanner power and start over with the prescan. This next time, increase the percentage (34%) to a larger number (35%) and it will likely work. The displayed image should be about the size you expect to use. Micro displays are not useful in HTML pages. They can be OK in TeX. Beware of 8" by 11" displays; they are not useful either. Select "Save as.." Select TIFF format (TIFF is the default) Save to disk. These images can be large, so a big disk is needed. Exit Adobe Photo Shop. Editing of the images can be done in Adobe Illustrator on the PowerMac or in Bradley's XV under unix, days or weeks after the image has been scanned. MOVING THE FILE TO UNIX. ============================================== It best to save onto the unix file system, because of file resource and data fork troubles. FTP is likely to be trouble (read below). Here's how to put your file into your unix account: CHOOSER Appleshare CSC user: ethier (for example) pass: ***** (your unix password) Select MAC as the disk The MAC icon should show up on the Mac desktop in JWB120. Save the TIFF file to this disk in order to use unix filespace. After you are done, put the MAC disk icon into the trash. Then clean up the jwb120 disk (remove your TIFF files). On the unix machine, the files are in directory ~/mac. The directory will be created if it does not already exist. Generally, the TIFF file to be used in XV will have the same name used on the MAC host. The copy to unix splits off the resource and data forks of the mac file. DON'T USE FTP! The resource and data fork problems usually lead to errors signaled by XV refusing to display the file. The issue is not binary versus text but rather the stripping of the resource fork during FTP. Does ncsa TELNET do it right? No! FILE CONVERSIONS. ====================================================== The files made on the Mac are MAC format. They are not automatically converted to unix format. The EPS format definitely is in MAC format. It will require a conversion on unix hosts to UNIX format, which replaces all carriage returns (ctrl-M) by linefeeds (ctrl-J). The EPS file needs conversion, e.g., on unix hosts, "mac2ux allan.eps" will replace the original "allan.eps" made on the mac by a unix file type. When you save a TIFF file in jwb120 for use on a unix host, choose PC format during output (avoids further conversions). A TIFF file saved in PC format can be viewed by the unix program "xv" (by John Bradley). If you want GIF format, then start with PC TIFF format, run Bradley's XV graphics program on a unix host, then choose the "Save" feature in the toolkit to write out the display in GIF format. To get the toolkit, press "?" in the XV display. A popup will appear. You can fool around with the image size, sharpening and color changes (eg, color --> mono). Gross changes will degrade quality so badly that it will send you back to the scanner. BORDERS and TEXT. ====================================================== It is sometimes desirable to add borders and text on top of an image. Do this in unix XFIG. The image can be imported. The mouse interface in X-windows is used to add and position borders and text. Output the result in GIF format for use in HTML pages or in EPS format for use in TeX documents. There is a good man page on xfig. The online help is poor. Put up a man page on the screen with xfig until you become an expert. Documents on HTML graphics includes are available from the netscape HELP menu. Documentation on inclusion of EPS files in TeX documents is available in the source "uuguide.tex" (UU Thesis format guide). Find it with the command "locate uuguide" on local unix systems or at ftp.math.utah.edu. *================================* | Grant B. Gustafson | | 113 JWB, Dept Math, U. of Utah | | Salt Lake City, UT 84112 | | (801) 581-6879 | | email: gustafso@math.utah.edu | *================================*