po->depth = depth;
po->clipdepth = clipdepth;
po->ratio = ratio;
- po->name = name;
+ po->name = (unsigned char*)name;
po->move = move;
if(clipdepth) po->clipdepth = clipdepth;
if(matrix) po->matrix = matrix_getMatrix(matrix);
{
tag_internals_t*itag = tag_getinternals(self);
if(!image_parse(itag))
- return PY_ERROR("Couldn't parse shape");
+ return PY_ERROR("Couldn't parse image");
image_internal_t*fi = (image_internal_t*)itag->data;
char*filename = 0;
if(!PyArg_ParseTuple(args, "s", &filename))
return NULL;
- writePNG(filename, fi->rgba ,fi->width, fi->height);
+ writePNG(filename, (unsigned char*)fi->rgba ,fi->width, fi->height);
return PY_NONE;
}