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 <
offray.luna@mutabit.com>:
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 binaryWriteStreamDo: .
---
tomo
2020���8���4���(���) 15:42 St��phane Ducasse <stephane.ducasse@inria.fr>:
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 <offray.luna@mutabit.com> wrote:
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 error reported in this mail's subject. I tried running her
example in my machine with her images and with my own and still I got
the same error. What are we missing?
[1] https://medium.com/concerning-pharo/elegant-pharo-code-bb590f0856d0
We are using Pharo 8.x on Manjaro Gnu/Linux 64 bits.
Thanks,
Offray
--------------------------------------------
St��phane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org
03 59 35 87 52
Assistant: Aurore Dalle
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley,
Parc Scientifique de la Haute Borne, B��t.A, Park Plaza
Villeneuve d'Ascq 59650
France