On Jun 28, 2010, at 4:10 45PM, Mariano Martinez Peck wrote: > > > On Thu, Jun 24, 2010 at 3:42 PM, Torsten Bergmann <[email protected]> wrote: > >I have an error "'image format not recognized'" > > Check the correct URL: > > http://ubuntu.ecchi.ca/wallpapers/10.04//Maraetaibeforesunrise.jpg > > in a webbrowser and then try in Pharo 1.1. > > Which VM (Std/Cog?), which OS and which pharo image do you have? > Do you have the same error in another image? > > > Pharo-1.1-11400-rc2 > Latest update: #11400 > VM: Squeak VM 4.2.2b1 > > What I evaluated: > > |form| > form := (Form fromBinaryStream: (HTTPSocket httpGet: > 'http://ubuntu.ecchi.ca/wallpapers/10.04/' , > 'Maraetaibeforesunrise.jpg')). > World backgroundImage: form layout: #scaled > > > I attach the PharoDebug.log generated. > > The problem is in #formFromStream: aBinaryStream > > Because none of "ImageReadWriter withAllSubclasses" understands the format, > and thus, it goes with the ifNone. > > Can you put a self halt and let me know which subclass in particular is > working for you? > > Cheers > > Mariano
Works just fine for me, with a variety of VM's, reader is PluginBasedJPEGReadWriter. Try inspecting just the get-stream, and see if you you actually get the image data or something else. (First line in streams collection should start with ÿØÿà JFIF Z in ascii mode ) Cheers, Henry
_______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
