> On 24 May 2016, at 20:11, Peter Uhnák <[email protected]> wrote:
> 
> 
> 
> On Tue, May 24, 2016 at 7:50 PM, Henrik Nergaard <[email protected]> 
> wrote:
> 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?
> 
> 
> Ah, good point.
>  
> 
>  
> 
>                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 ) ?
> 
> 
> What's the difference? Why do we have two clasees for reading JPEGs?
> 
> Peter

One is implemented in pure Pharo code, the other is plugin based, C code 
calling a library, and is much faster (and presumable more capable in handling 
weird cases).

I always assumed the fastest one was used automatically, but apparently not.

This works:

PluginBasedJPEGReadWriter formFromStream: (ZnEasy get: 
'http://orig13.deviantart.net/e8d3/f/2013/092/a/3/glados_s_activation_by_first9-d605rwi.jpg')
 entity readStream.

I'll have to look into this.

Sven


Reply via email to