home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / graphics / idealimg / idealimg.txt < prev    next >
Text File  |  1989-06-21  |  8KB  |  132 lines

  1.                    The Ideal Image Size Setter
  2.                          by Chet Walters
  3.  
  4.     If you didn't know, GEM .IMG files have some interesting
  5. information in their headers.  Some of this information is necessary
  6. to decipher the compression scheme.  Other of it tells what size in
  7. bits width and height the image is.  Important to us here, however, is
  8. the information that tells for what device the image was intended or
  9. created.  This would be the size of the pixels of the device on which
  10. the image was created or to which it is destined to be printed.
  11.  
  12.     So far (that I know of) there are only two ST programs that pay
  13. any attention to this pixel size information (though more should). 
  14. One is Touch Up by Migraph.  The other is PageStream.  Touch Up will
  15. allow you to modify this information before you save an IMG.  However,
  16. that means you must load the IMG, modify the info in a dialog which
  17. takes many mouse clicks and key presses, then you must save the IMG to
  18. retain that info (and Touch Up is no speed demon at saving or loading
  19. IMG's).  PageStream (which is quite fast at loading IMG's as objects)
  20. uses this information to decide what size the IMG will be when it's
  21. imported as an object.  I'm sure if you've used PGS you've encountered
  22. this thorny little problem:  you've imported an IMG as an object then
  23. dropped it on the page only to have it end up a HUGE thing which you
  24. cannot modify since it extends beyond the page edges.
  25.  
  26.     What happens is that PGS reads the header of the IMG and the
  27. header tells PGS that the IMG is intended for a device with pixels
  28. that are, say, at a resolution of 95 x 95 DPI (about the size of the
  29. pixels on the Atari SM124 monitor).  Hence, if the IMG is 950 bits
  30. wide by 1140 bits tall, PGS figures it should be 10 INCHES wide by 12
  31. INCHES tall!  YIKES!  This makes the import bigger than an 8 by 11
  32. page.  Certainly not at all workable.  Especially since you plan to
  33. print the thing on a laser printer which has pixels at 300 DPI so the
  34. IMG, dot for dot, should only be about 3.2 inches wide by 3.8 inches
  35. high.  Well, here's a fix!
  36.  
  37.     Ideal IMG Sizer will set the header information on the IMG you
  38. choose from the fileselector to the right size for your printer.  You
  39. have a choice of a 9 pin printer (120/144 DPI), a 24 pin printer
  40. (180/180 DPI) or a laser printer (300/300 DPI).  IMG's modified with
  41. the sizer will import into PageStream (or Touch Up) at the exact dot
  42. for dot pixel for bit size to print ideally on the printer you choose. 
  43. It's then easy to use the EDIT COORDINATES dialog of PGS to set the
  44. size to 200%, 150% or whatever size (inchwise) you think the thing
  45. should be.  This also helps to preserve the aspect ratio of your
  46. imported images for best looks when they print.  And they DO look very
  47. nice when printed at their ideal size.
  48.  
  49.     The IMG sizer comes in two flavors.  The flavor you will likely
  50. use first is the 10K PRG named MANY_IMG.PRG.  This program will let
  51. you set the size of ALL the images in any directory path you choose
  52. from the fileselector.  That's _ALL_ the images, _NO_ questions asked. 
  53. First select your printer then set the path with the fileselector and
  54. let the program do the rest.  If you make a mistake, hit the CANCEL
  55. button.  If you aren't sure you chose the right printer, hold the
  56. SHIFT key when you hit any button on the main Alert and you can set
  57. the printer again.  The MANY_IMG.PRG program was written in GFA Basic
  58. and there is little error checking.  It will not damage any files, but
  59. it may well crash if it encounters a READ ONLY file or a disk that's
  60. bad or write protected.  I recommend you use the MANY_IMG program only
  61. at first when you have several diskfulls of IMGs which need sized (now
  62. that you know you can do it easily).  You should then tuck it safely
  63. away and use the accessory/program described below.
  64.  
  65.     The second flavor is the 2K IDEALIMG.ACC.  This works directly in
  66. PageStream or Touch Up or anywhere the DESK menu is available.  It
  67. will size only one IMG at a time until you hit the CANCEL button of
  68. the fileselector.  Use this to set the size of IMG's __BEFORE__ you
  69. import them into PGS, TU or any other DTP program.
  70.  
  71.     The first time the ACC is invoked, you will be asked to select a
  72. printer.  Click the button which corresponds to the printer to which
  73. you ultimately plan to dump the IMG.  You won't see this printer
  74. selection box again as long as the machine is not RESET or turned off
  75. unless you really want to.  If for any reason you need to change the
  76. printer (or just to ease your mind that you've chosen the right one)
  77. PRESS and HOLD the SHIFT key as you click on the IDEAL IMAGES name
  78. under the DESK MENU (or from MultiDesk).  Continue to HOLD the SHIFT
  79. key down until the printer selection box appears.  Change the default
  80. to the printer you wish.
  81.  
  82.     Any time the IDEAL IMAGES accessory is invoked after you've
  83. selected the printer, it will take you directly to the fileselector. 
  84. Choose the IMG file you wish to size (remember, do it _BEFORE_ you
  85. import it into the program currently running).  The ".IMG" extender
  86. will be automatically appended to the filename so you can't
  87. accidentally modify a file that's not an image (just in case you
  88. really worked to fool the program into thinking that the PI3 Degas
  89. file you double clicked was an IMG file).  The image chosen will be
  90. modified and the fileselector will re-appear with the name of the file
  91. you just changed on the selection line (to remind you or, in case of
  92. error, to show you which file was bad).  Make another choice, or hit
  93. the CANCEL button to exit the accessory.  Short, sweet and simple!
  94.  
  95.     Remember! With IDEAL IMAGES, no news is good news.  If the you
  96. don't get an error alert, then everything went fine.  You will be
  97. surprised at how quickly this accessory works (we did it this way to
  98. reduce the window redraws that PGS or any other program currently
  99. running must perform).  And, there's a bonus!  If you wish, you can
  100. rename the IDEALIMG.ACC file to IDEALIMG.PRG and it will also run from
  101. the desktop as a program!  Hooray! No more HUMONGOUS out-of-aspect
  102. images dropping all over the windows of PageStream!  No more load,
  103. edit cumbersome dialog, resave hassle with Touch Up to resize IMG's
  104. for your printer!
  105.  
  106.     I have released several programs recently into the ShareWare
  107. market.  They have seen print in Z-net, The ShareWare Connection,
  108. PSAN, and have been included on the ST World disk of the month. 
  109. Unfortunately, I have received _NO_ donations for these efforts (not
  110. even a 'Hi! How ya doin'?" note in my PO BOX).  In fact, I had
  111. intended to modify my COMPACT DIR program to include a sort feature
  112. and also a 'mask' which will let you set types of files to include or
  113. exclude from the printout.  However, due to the poor response from the
  114. folks who USE ShareWare products without a care in the world for the
  115. folks who WRITE ShareWare products, this (an other) projects have been
  116. permanently shelved.  At this time, I write things only if I need them
  117. MYSELF.  I had a need for the IDEAL IMAGE SIZER so I wrote it.  No
  118. bells, no whistles, just an easy to use program that does the job
  119. without taking up too much time or effort.
  120.  
  121.     So, in light of this, I won't ask for donations for IDEAL IMAGE
  122. SIZER.  However, if you like it, if you find it helpful, if you find
  123. it easy to use and worth including in your desk accessory collection,
  124. send me a "Hi! How ya doin'?" note just so I know that there really is
  125. somebody else out there who owns an ST.  If you include five bucks in
  126. the envelope, so much the better (tho I'll probably be so surprised
  127. I'll have a coronary right there in the lobby of the post office!)
  128.  
  129. Chet Walters
  130. PO Box 45
  131. Girard, Ohio  44420
  132.