def test_magick(): from calibre.utils.magick import create_canvas i = create_canvas(100, 100) from calibre.gui2.tweak_book.editor.canvas import qimage_to_magick, magick_to_qimage img = magick_to_qimage(i) i = qimage_to_magick(img) print ('magick OK!')
def test_magick(): from calibre.utils.magick import create_canvas i = create_canvas(100, 100) from calibre.gui2.tweak_book.editor.canvas import qimage_to_magick, magick_to_qimage img = magick_to_qimage(i) i = qimage_to_magick(img) fprint('magick OK!')