I would like to use graphicsmagick with wxpython to make an interactive image editor. I'm using the pgmagick python api.
A naive attempt:
from wxPython import wx
from pgmagick import Image
im = Image('portrait.png')
wximg = wx.wxEmptyImage(im.columns(), im.rows())
wximg.SetData(im)
produced: TypeError: expected a readable buffer object
from wximg.SetData(im)
Then I flailed about trying pgmagick.getPixels
, blob, etc. without success.
Have you succeeded?
Thanks!