nanogui: getting for jpeg to pbm for convpbm
Subject:
Re: [nanogui] getting for jpeg to pbm for convpbm
From:
tj ####@####.####
Date:
25 May 2004 13:21:14 +0100
Message-Id: <40B33A1F.9010501@comcast.net>
What confusd me was getting from pnm to pbm. I was looking for a
"pnmtopgm". I guess ppm and pnm are one in the same?
tj
Alex Holden wrote:
> tj wrote:
>
>> A while back, somebody posted a string of commands to get from a jpeg
>> to a .pbm file that can be used by convpbm.
>> Could somebody supply that to me
>
>
> jpegtopnm input.jpg | ppmtopgm | pgmtopbm > output.pbm
>
> If you're making a mask for a shaped window, the input image should be
> black and white only and preferably a simple block outline- greys and
> colours will get dithered into complex stipple patterns which will
> lead to extremely complex window regions that use lots of memory and cpu.
>