[TheForge] Re: OT Question on Photo-Display Software

Mike Spencer mspencer at tallships.ca
Mon Aug 7 14:11:12 EDT 2006


> I think the best "fix" would be some software that would pick up a
> directory of photos (.jpg) and reduce each one to no more than web-page
> quality.

If the NetPBM package is available for your OS, that should do it.

NetPBM is a large collection of small programs, each one of which does
a single operation (e.g., convert to another format, rotate,
gamma-adjust, scale etc.) on an image.  This lends itself to
scripting.  It's been around for years, gradually adding more
capabilities.  I've used it under MS-DOS, works great under
Linux/Unix.

Something like:

   foreach foo (*.jpg)
      jpegtopnm $foo | pnmscale 0.2 | pnmtojpeg > small-$foo
   end

should work, translated to whatever scripting language you have
available.

- Mike


-- 
Michael Spencer                  Nova Scotia, Canada       .~. 
                                                           /V\ 
mspencer at tallships.ca                                     /( )\
http://home.tallships.ca/mspencer/                        ^^-^^



More information about the TheForge mailing list