Re: [Pharo-users] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding while running Elegant Code image conversion example

2020-08-06 Thread Stéphane Ducasse
this would be nice for archival in the bug entry. S > On 5 Aug 2020, at 18:34, Offray Vladimir Luna Cárdenas > wrote: > > Thanks Stéphane and Tomo, > > I have added the working code to the GH issue thread. There is still need of > testing images for the non working one? > > Offray > > On 5

Re: [Pharo-users] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding while running Elegant Code image conversion example

2020-08-05 Thread Offray Vladimir Luna Cárdenas
Thanks Stéphane and Tomo, I have added the working code to the GH issue thread. There is still need of testing images for the non working one? Offray On 5/08/20 4:00 a. m., Stéphane Ducasse wrote: > offray  > > could you add your pictures to the bug entry > > https://github.com/pharo-project/pha

Re: [Pharo-users] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding while running Elegant Code image conversion example

2020-08-05 Thread Stéphane Ducasse
offray could you add your pictures to the bug entry https://github.com/pharo-project/pharo/issues/7043 S. > On 5 Aug 2020, at 07:53, Tomohiro Oda wrote: > > Offray, > > I tried it myself and found that the code works on some jpg pics and > does not work on some other pics. > For my case, u

Re: [Pharo-users] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding while running Elegant Code image conversion example

2020-08-04 Thread Tomohiro Oda
Offray, I tried it myself and found that the code works on some jpg pics and does not work on some other pics. For my case, using PluginBasedJPEGReadWriter instead of JPEGReadWriter solved the problem. Best Regards, --- tomo 2020年8月5日(水) 2:43 Offray Vladimir Luna Cárdenas : > > Thanks Tomo, > >

Re: [Pharo-users] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding while running Elegant Code image conversion example

2020-08-04 Thread Offray Vladimir Luna Cárdenas
Thanks Tomo, I tried your proposal, but now I get: "Error: marker C2 cannot be handled" and still the exportation is not working. Cheers, Offray On 4/08/20 2:04 a. m., Tomohiro Oda wrote: > Offray, > > Apparently, readStreamDo: should be binaryReadStreamDo: and > writeStreamDo: should be binary

Re: [Pharo-users] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding while running Elegant Code image conversion example

2020-08-04 Thread Tomohiro Oda
Offray, Apparently, readStreamDo: should be binaryReadStreamDo: and writeStreamDo: should be binaryWriteStreamDo: . --- tomo 2020年8月4日(火) 15:42 Stéphane Ducasse : > > Thanks for the report I confirm that I can reproduce the problem. > I do not know yet the answer. Now I think strange that we use

Re: [Pharo-users] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding while running Elegant Code image conversion example

2020-08-03 Thread Stéphane Ducasse
Thanks for the report I confirm that I can reproduce the problem. I do not know yet the answer. Now I think strange that we use a characterStream for reading jpeg. S. > On 3 Aug 2020, at 20:41, Offray Vladimir Luna Cárdenas > wrote: > > Hi, > > Today I was an introduction to Pharo. As usua

[Pharo-users] ZnInvalidUTF8: Illegal leading byte for utf-8 encoding while running Elegant Code image conversion example

2020-08-03 Thread Offray Vladimir Luna Cárdenas
Hi, Today I was an introduction to Pharo. As usual, I asked the learner to taste the environment and syntax by running the examples in excellent Sven's Elegant Code[1] (BTW, can I translate snips of  it to Spanish?). When she was adapting the example 6 about converting JPGs to PNGs, we get the err