home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / misc / 40764 < prev    next >
Encoding:
Text File  |  1992-12-31  |  2.0 KB  |  63 lines

  1. Newsgroups: comp.os.os2.misc
  2. Path: sparky!uunet!nwnexus!davego
  3. From: davego@halcyon.com (Dave Oliphant)
  4. Subject: Re: What format are .jpg files in?
  5. Message-ID: <1992Dec31.223323.21525@nwnexus.WA.COM>
  6. Keywords: jpg, gif, pictures, images
  7. Sender: sso@nwnexus.WA.COM (System Security Officer)
  8. Organization: The 23:00 News and Mail Service
  9. References: <C056J6.4ns@cs.uiuc.edu>
  10. Date: Thu, 31 Dec 1992 22:33:23 GMT
  11. Lines: 50
  12.  
  13. In article <C056J6.4ns@cs.uiuc.edu> joshi@cs.uiuc.edu (Anil Joshi) writes:
  14. >I have some image files I downloaded which have extension .jpg
  15. >
  16. >The person uploading those files claimed that they are gif files. When I try to
  17. >view them using pmgif (from hobbes), I get an error message saying that these are not gif files. I suspect that they are in jpeg compressed format. Could 
  18. >somebody tell me how I can view these files?
  19. >
  20. >1. Do I have to convert them to gif format? If so, is there a program on hobbes
  21. >   which does it?
  22. >
  23. >2. Are there any other viewers that view these files directly?
  24. >
  25. I dont know about any programs which view .jpg files directly, what I do
  26. is use a program from hobbes called jpegv4.zip.  This program takes a
  27. ..jpg file and converts it to a .gif file with the following format:
  28.  
  29. C:> djpeg -gif somepict.jpg somepict.gif
  30.  
  31. Then I use SVGA (or something like that) or cview (I think dcview20.zip)
  32. to view the resulting gif file.
  33.  
  34. To convert several .jpg files at once, I use the following rexx script
  35. from some good person on the net:
  36.  
  37. /*  DJ.cmd
  38.     ************************************************
  39.     Convert all files in a directory from JPG to GIF
  40.     ************************************************
  41. */
  42.  
  43. Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs';  Call
  44. SysLoadFuncs
  45.  
  46. Err = SysFileTree("*.cmd", Dir, "FO", ,)
  47.  
  48. IF Err THEN DO
  49.     Say "Not enough memory to load directory"
  50.     Exit
  51. END
  52.  
  53. DO I=1 TO Dir.0
  54.     Jpg = Left(Dir.I, Length(Dir.I) - 4) || ".JPG"
  55.     Gif = Left(Dir.I, Length(Dir.I) - 4) || ".GIF"
  56.     'djpeg -gif' Jpg Gif
  57. END
  58.  
  59. Happy New Year!!!!!!
  60.  
  61.  
  62.  
  63.