Hi Arnd, bytes is right, but the issue was indeed present in the channel extraction code needed for the alpha channel, as the alpha channel needs to be encoded in a separat image in PDF. changeset 3611 fixes the issue.
Best, André Am 30.03.2015 um 23:53 schrieb Arnd Baecker <[email protected]>: > Hi David, > > thanks a lot for your reply ... but ... > > On Mon, 30 Mar 2015, David Barton wrote: > >> Hi, >> I think the problem is that Python 3 now distinguishes between strings >> (unicode) and binary strings (not unicode?). Try using >> img_string = b"\77\77\77\33\177\177\177\44\277\277\277\55\377\0\0\66" + \ >> b"\0\377\0\77\0\01\37\0" >> Note the extra "b" before the leading quotes. This problem comes up in quite >> a few places with Python 3 that I've been encountering recently, not just >> with PyX. >> I've not tested this but hopefully it works! > > ... the problem persists for me > (actually, in my original usage scenario, the image > comes via the python image library and it seems that the RGBA > with the "A" is problematic, while an example with just RGB works fine). > > Best, > Arnd------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. > http://goparallel.sourceforge.net/_______________________________________________ > PyX-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pyx-user -- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) [email protected], http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
