@@ -266,11 +266,12 @@ static PyObject* pyail_write(PyObject* self, PyObject* args)
266266 PyObject * fileLikeObj ;
267267 int width , height ;
268268 int inputFormat ;
269+ int outputFormat ;
269270 const char * profileName ;
270271 PyArrayObject * colourProfileObj ;
271272 int colourProfileLen ;
272273 PyObject * encodingOptionsTuple ;
273- if (!PyArg_ParseTuple (args , "iOOiiisOIO " , & fileFormat , & sourceArrayObj , & fileLikeObj , & width , & height , & inputFormat , & profileName , & colourProfileObj , & colourProfileLen , & encodingOptionsTuple ))
274+ if (!PyArg_ParseTuple (args , "iOOiiiisOIO " , & fileFormat , & sourceArrayObj , & fileLikeObj , & width , & height , & inputFormat , & outputFormat , & profileName , & colourProfileObj , & colourProfileLen , & encodingOptionsTuple ))
274275 return NULL ;
275276
276277 PyAIL_callback_data * callbackData ;
@@ -288,7 +289,7 @@ static PyObject* pyail_write(PyObject* self, PyObject* args)
288289
289290 callbackData -> threadState = PyEval_SaveThread ();
290291
291- int err = AImgWriteImage (wImg , PyArray_DATA (sourceArrayObj ), width , height , inputFormat , profileName , colourProfile , colourProfileLen , pyail_WriteCallback , pyail_TellCallback , pyail_SeekCallback , callbackData , encodingOptions );
292+ int err = AImgWriteImage (wImg , PyArray_DATA (sourceArrayObj ), width , height , inputFormat , outputFormat , profileName , colourProfile , colourProfileLen , pyail_WriteCallback , pyail_TellCallback , pyail_SeekCallback , callbackData , encodingOptions );
292293 PyEval_RestoreThread (callbackData -> threadState );
293294
294295 pyail_destroyCallbackData (callbackData );
0 commit comments