home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / opus / v4 / jpeg / jpeg-asks.doc < prev   
Text File  |  1996-06-13  |  4KB  |  96 lines

  1. ##
  2. ## $VER: JPEG with or without .map 1.0
  3. ##
  4.  
  5.  
  6. If you do not have AGA stop reading... This is a useless download... Sorry!
  7.  
  8.  
  9.  
  10. I recently came into the aga age, and I found two ways to show JPEG
  11. pictures... One is using FastJPEG 1.10 AGA - A fast JPEG picture viewer
  12. Copyright © 1993,1994 Christoph Feck, TowerSystems, and one was jpegAGA 2.2
  13. by Günther Röhrich. This last one can use a .map file thus increasing the
  14. quality off jpeg display considerably. I had a button assigned in opus to
  15. create a map file for every jpeg I had, but thought there should be an
  16. easier way... 
  17. Here it is :-) A script for opus 4 (maybe 5 ?), that will do the following:
  18.  
  19. First it will check if there is a .map file with the jpeg.
  20.  If there is none, it will display the image using FastJPEG 1.10 AGA;
  21.  After this it will aks you if you would like to create a .map file;
  22.  On a positive answer it will generate a .map file and redisplay the image
  23.  using jpegAGA 2.2. See the difference ?
  24. If there is a .map file available, the script will jump directly to
  25.  displaying the image using jpegAGA 2.2...
  26.  
  27. One note though... you need to assign JPEGTMP: to somewhere on your HD !!!
  28. i.e. 
  29. assign JPEGTMP: dh0:trashcan. 
  30. Put it in your user-startup for more convienience...
  31.  
  32. --
  33. This is how to do it:
  34.  
  35. Start the config editor (logical step isn't it ??)
  36.  
  37. If you have no JPEG in DOPUS already, Enter the filetypes section. In the
  38. MENU classes choose edit and search for JPEG... If it is not there, select
  39. CANCEL, and from the MENU classes choose new...
  40.  
  41.  The file class should be set to picture, JPEG
  42.  The Class ID should be set to JPG
  43.  
  44.  enter   Match         $FFD8FFE0
  45.          or
  46.          MatchName     *jp#?g
  47.  
  48.  as qualifiers, and OKAY your way out... SAVE the fileclasses !!!
  49.  
  50. Now for the easy part :-)
  51.  
  52. select from the MENU classes the (new ?) JPEG. 
  53.  
  54. ---------------------------------------
  55. ACTION:       Double-click
  56.  
  57. Batch         dopus:modules/batch/JPEG-asks {f} {Qs}
  58.   
  59. FLAGS:        Output window
  60.  
  61. ---------------------------------------
  62.  
  63. Exit the configeditor, and (if not excisting already) MAKEDIR in the
  64. dopus: directory, called modules (it SHOULD be there already...). Enter
  65. the dopus:modules/ directory, and MAKEDIR BATCH  (your path should look
  66. like DOPUS:MODULES/batch/ !!).
  67. Copy the JPEG-asks script there. Copy everyhing from the c/ directory
  68. in the archive to your c: directory.
  69.  
  70. double click a jpeg picture, and the magic starts !
  71.  
  72. ---
  73.  
  74. Let me know what you think, and if you use it (and why not...?).
  75.  
  76.  
  77.        ·······························································
  78.        .#.####..............................................####..####
  79.        ##.#..#........._______....______......_______.......#..#..#...
  80.        .#.####......../      /....|     \.....\      .......####..####
  81.        .#....#......./______/.....|______|.....\      .........#..#..#
  82.        .#.####....../      /......|      |......\      .....####..####
  83.        ............/....../.......|_____/........\_______.............
  84.        ...............................................................
  85.        .............ABC, THE CUTEST LAMER IN THE BUSINESS.............
  86.        .                                                             .
  87.        .                   Niels van \X/illigenburg                  .
  88.        .______                 Millingenhof 123                ______.
  89.        /      \             NL-1106 KH   AMSTERDAM            /      \
  90.        | O  O |                  Netherlands                  | O  O |
  91.        |  /\  |                    Europe                     |  /\  |
  92.        | \__/ |               +31 (0)20-6979932               | \__/ |
  93.        .\____/               FIDO -> 2:280/464.17              \____/.
  94.        .                          -> niels@aobh.xs4all.nl            .
  95.        ·······························································
  96.