[PD] pdp_reg image dimensions

Mathieu Bouchard matju at sympatico.ca
Fri Feb 18 03:58:36 CET 2005

On Fri, 18 Feb 2005, derek holzer wrote:

> I'm trying to load a png image to pdp_reg, but I am getting the 
> following error:
> WARNING: request to create image packet with illegal dimensions 533 x 400
> What are the proper dimensions for using this object? It is not 
> documented anywhere AFAIK.

GEM and PDP have some restrictions on widths of pictures. It has to be a
multiple of some number; i think it's 2 or 4 or 8. It may depend on
colormodel too, as the point is to prevent unaligned (slow) computations
from happening, which depends on the number of bytes per row.

GridFlow accepts any possible size, but it's still best (for speed) to pad
or crop the picture to a good multiple: 8 for greyscale and rgb, 4 for
greyscale-with-alpha, and 2 for rgb-with-alpha, and so on.

Mathieu Bouchard -=- Montréal QC Canada -=- http://artengine.ca/matju

More information about the Pd-list mailing list