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.

��

���������������������������� 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_first9-d605rwi.jpg') 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_first9-d605rwi.jpg'.

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_first9-d605rwi.jpg') contents readStream).

World

���������������������� backgroundImage: image

���������������������� layout: #scaled.

��

Peter