Probles with Rendering GIFs and PNGs

82 views
Skip to first unread message

Thomas Hofer

unread,
Feb 20, 2016, 5:17:51 PM2/20/16
to mwlib
 

Hi there! I hope you can help me out of my troubles.

I installed the collection extension on a ubuntu server 14.04.1-Ubuntu x86_64 x86_64 x86_64 GNU/Linux

and tried to install a LOCAL render server at it is described in MWLib Installation Page. It already renders text, tables and so on, but it fails to render PNG and GIF images (JPEG however WORKS). It also failes to render the proposed test with the error:

WARNING: Article could not be rendered - ouputting plain text.

Potential causes of the problem are: (a) a bug in the pdf-writer software (b) problematic Mediawiki markup (c) table is too wide

I managed to find out it only fails on PNGs and GIFs, but renders JPEGs correctly. What did I miss? Do I have to install additional libraries? which? how? Do I have to recompile? what? how?

It would be very kind if someone could help me. If needed (for faster response) I could provide a Team-Viewer session of get in contact to me using instant messaging. My user is "scoutice".

Best regards, Thomas


Thomas Hofer

unread,
Mar 2, 2016, 4:11:41 AM3/2/16
to mwlib
i solved the problem. it was a bug in utils.py. i had to replace the line
self._data = im.tostring()
with
self._data = im.tobytes()

this method was not avilable any more in the pyhton installation, which was recommended.
Reply all
Reply to author
Forward
0 new messages