[Gllug] Image cropping from a script

Nix nix at esperi.org.uk
Fri Jul 6 23:16:30 UTC 2007


On 6 Jul 2007, tethys at gmail.com stated:
> Yep, that would probably work. But in the end, I just used ppmmake to
> create a one colour palette file as you suggested, and then pnmremap
> with -mapfile and the -missingcolor option to turn everything but the
> pixels of the colour in which I'm interested into the same background
> color, and then pnmcrop works fine. It was simpler than trying to
> craft a suitable file for pamlookup. If I'd needed to preserve the
> other colours in my cropped area, then my method wouldn't have worked,
> but for this particular application, I don't.

Oh. You didn't? What a... strange application :) but OK, if that works,
then it is slightly simpler.

-- 
`... in the sense that dragons logically follow evolution so they would
 be able to wield metal.' --- Kenneth Eng's colourless green ideas sleep
 furiously
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list