What is the sh code for image manipulation?
no not really it has to be in bourne shell script
GuzzyD
2010-09-15 14:47:58
@GuzzyD: A shell script should easily be able to call this utility. Do you mean that it can't use any utilities and has to be _entirely_ within a script?
David
2010-09-15 14:51:27
yeah well basically just raw scripting...its pretty hard cos at the moment im doing an assignment and ive done the renaming, short listing and long listing part of the sh scripting code but this part i have no clue. so if u can help me then many thanks! ;)
GuzzyD
2010-09-15 15:04:44
@GuzzyD: I could be mistaken, but I don't believe shell scripts can natively perform any real image manipulation. Technically it could read in an image file as a series of characters and modify them, but that's _really_ low-level and is going to require a _ton_ of work to drive the logic. For all practical purposes, shell scripts generally call other tools to perform actions like this.
David
2010-09-15 15:53:36
ohhhh ok...cheers thanks! ;)
GuzzyD
2010-09-16 02:51:00
A:
Try ImageMagick. There is nice command line utility available: convert:
Use the convert program to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
Ivan Nevostruev
2010-09-15 14:45:20