POV-Ray : Newsgroups : povray.off-topic : Merge hundreds of images together? : Re: Merge hundreds of images together? Server Time
4 Sep 2024 05:19:37 EDT (-0400)
  Re: Merge hundreds of images together?  
From: Shay
Date: 3 Jul 2010 11:39:01
Message: <4c2f5995$1@news.povray.org>
On 07/02/2010 01:16 PM, Darren New wrote:
> Darren New wrote:
>> If you use the textual version of PPM, you can open it in a text editor
>
> convert xyz.png -compress None xyz.ppm
>
> Then edit xyz.ppm in a text editor. You'll get a header (P3), the X, Y,
> and maximum data value, then X*Y ascii integers.
>
> Read em, average em, convert em back.
>

I should have thought of this; I have written code in Python for 
handling PPMs. Only problem is that I have to make and format a list of 
the files so that Python can read the list. My Python skills are not 
such that I can call a Python program with program(args). Still, a Vim 
script should make quick work of that.

Shouldn't need longs. Hope not, at least, I've got no idea how to deal 
with them in Python.

  -Shay


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.