On 25 May 2016, at 08:42, stepharo <stepharo@free.fr> wrote:
Le 24/5/16 à 19:50, Henrik Nergaard a écrit :
Not sure where to report zinc bugs⦠fogzbugz? or is it a separate project? Any bug found in the standard image regardless of project should be reported on fogbugz, no?
Yes I imgaine that there is zinc project there else we should create one.
Of course there is a Zinc category.
but this works just fine⦠If I do:
| imageStream |
imageStream := (ZnEasy get: 'http://orig13.deviantart.net/e8d3/f/2013/092/a/3/glados_s_activation_by_firs...') contents readStream.
JPEGReadWriter formFromStream: imageStream.
It will give me an error âimage format not recognizedâ.
ImageReadWriter chooses to use PluginBasedJPEGReadWriter instead of JPEGReadWriter (ImageReadWriter >>#readerClassFromStream: ).
So perhaps #getJpeg: should use the PluginBasedJPEGReadWriter or have a fallback on error trying once more by using ( JPEGReadWriter formFromStream: theStream ) ?
Best regards, Henrik
From: Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org] On Behalf Of Peter Uhnák Sent: Tuesday, May 24, 2016 6:37 PM To: Pharo Development List <pharo-dev@lists.pharo.org> Subject: [Pharo-dev] strange Zinc JPEG bug
Hi,
Offray discovered a strange Zinc bug when reading a JPEG. Not sure where to report zinc bugs⦠fogzbugz? or is it a separate project?
This fails on "marker D0 cannot be handled"
image := ZnEasy getJpeg: 'http://orig13.deviantart.net/e8d3/f/2013/092/a/3/glados_s_activation_by_firs...'. World backgroundImage: image layout: #scaled.
but this works just fine
image := (ImageReadWriter formFromStream: (ZnEasy get: 'http://orig13.deviantart.net/e8d3/f/2013/092/a/3/glados_s_activation_by_firs...') contents readStream). World backgroundImage: image layout: #scaled.
Peter