Re: Image manipulation through bash?



At 19 Mar 2007 11:43:59 -0700 "sk8terg1rl" <sk8terg1rl_2006@xxxxxxxxxxx> wrote:


Hi group,

I've been working on building up an archive of pictures for me to test
the performance of an image recognition program on. At the moment I'm
going for quite modest goals of recognising a certain object in a
100x100 black and white bitmap file.

So let's say I've got a generic image, in whatever format. I want to:
(1) Resize it to exactly 100x100 pixels. Where rounding causes it to
be 99x100 or 101x100 pixels, it adds/deletes a blank line
respectively.
(2) Convert the file into monochrome bitmap format.

Can this be done in bash? The reason I'm asking is that it is very
tedious doing it one by one by clicking around a GUI image
manipulation programs.

Install the ImageMagicK package on your machine. Then you can:

man ImageMagicK
man convert

Convert will do what you want, totally from the command line.


Thanks everyone :-)
skate xx



--
Robert Heller -- 978-544-6933
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
heller@xxxxxxxxxxxx -- Contract Programming: C/C++, Tcl/Tk

.



Relevant Pages

  • Re: Image manipulation through bash?
    ... the performance of an image recognition program on. ... 100x100 black and white bitmap file. ... Resize it to exactly 100x100 pixels. ... Convert the file into monochrome bitmap format. ...
    (comp.os.linux.misc)
  • Re: Image manipulation through bash?
    ... the performance of an image recognition program on. ... Resize it to exactly 100x100 pixels. ... Convert the file into monochrome bitmap format. ... Automatic object recognition is a very noble task, ...
    (comp.os.linux.misc)