18 Mar
2009
18 Mar
'09
1:14 p.m.
On 18/3/09 12:12, Mark Rogers wrote:
I need to resize an image to fit into a 350x350 box. Which means I need to (a) scale the image so no dimension exceeds 350, then (b) centre the image in a 350x350 canvas.
If you're prepared to use NetPBM, you should be able to use pnmpaste or pnmpad to do this. It's a 10-minute job to roll out a program to do this, so give me a shout if you can't find anything that works. ..Adrian -- Dr Adrian F Clark WEB: http://privatewww.essex.ac.uk/~alien/ EMAIL: alien/at/essex.ac.uk TEL: +44 1206 872432 FAX: +44 1206 872900 PAPER: Comp Sci & Elec Eng, University of Essex, Colchester, CO4 3SQ, UK "The great tragedy of science: the slaying of a beautiful hypothesis by an ugly fact" -- Huxley