[visionegg] Re: Paletted BMP files of different sizes

  • From: "Dave Bissig" <dbissig@xxxxxxxxx>
  • To: visionegg@xxxxxxxxxxxxx
  • Date: Mon, 6 Oct 2008 23:00:15 -0400

P.S.,

Please send the solution(s) to your issues out to the listserve.

-Dave

On Sun, Oct 5, 2008 at 11:20 PM, Tim Blanche <timblanche@xxxxxxxxxxx> wrote:

> Hello,
>
> I need to present a series of 100 or so images, not a movie, but briefly
> flashed images separated by 1~3 seconds.
>
> The "image_sequence_fast.py" demo almost does the job, with the
> following two issues:
>
> i) The BMP images I have are paletted, but Textures.py raises a error
> "Paletted images are not supported". Quick work-around was to convert
> the image into 24 bit RGB colour, but I was wondering if there's a
> better way?
> ii) the images do not have all the same pixel dimensions, so the
> single-texture-with-a-fixed-size approach used by the demo code isn't
> suitable.  A not-so-quick work around would be to re-size all the images
> to have the same dimensions as the largest image in the set, with border
> padding the same as the background colour, but again, there must be a
> better way.
>
> Any thoughts?
>
> Thanks,
>
> Tim Blanche.
> ======================================
> The Vision Egg mailing list
> Archives: //www.freelists.org/archives/visionegg
> Website: http://www.visionegg.org/mailinglist.html
>

Other related posts: