|
From: Mathieu M. <mat...@gm...> - 2010-02-19 13:12:22
|
hi Kurt, WARNING: I am not advicing you to use pvrg-jpeg by any mean. You should keep in mind that the lossless encoder of PVRG is sk*ew up (I really mean it). The only reason why I worked on this package was to be able to handle PVRG' compressed file. The only way I found out was to decompress them with pvrg and then recompress them with IJG+lossless patch. See GDCM (http://gdcm.sf.net) for the complete solution. Anyway the command line you are looking for is: $ convert test.pgm test.gray $ pvrg-jpeg -iw 1024 -ih 64 test.gray -s out.jpg Assuming that your test.pgm would start with something like: P5 1024 64 255 ... I have not tested with RGB, but it should work. convert is from the imagemagick package. HTH On Fri, Feb 19, 2010 at 11:52 AM, Kurt Horvath <ku...@ko...> wrote: > Hallo! > > I want to use pvrg-jpeg on debian to compress lossless medical data but it > seems I have got an input problem. My original source is .bmp (bitmap > 8-bit). But I also did try to convert to pgm as mentioned in the manual > > > > I was thinking about following command: > > > > pvrg-jpeg –iw 320 –ih 240 –hf 2 –k 21.pgm –s myfle1.llj > > > > can u give me a hint where my mistake is? (error is 2092: Invalid input > detected) > > > > (P.S.: I really need lossless jpeg because I am doing compression of several > standards) > > > > Regards, > > > > Kurt Horvath -- Mathieu |