Re: [Pharo-project] [OT] Ubuntu wallpaper
2010/6/28 Henrik Johansen <henrik.s.johansen@veloxit.no>
On Jun 28, 2010, at 4:10 45PM, Mariano Martinez Peck wrote:
On Thu, Jun 24, 2010 at 3:42 PM, Torsten Bergmann <astares@gmx.de> 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 )
Thanks Henry....Weird....Today, I cannot reproduce it anymore. In any image :( I don't know what was the problem then...anyway, forget it. Thank you very much mariano
Cheers, Henry
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (1)
-
Mariano Martinez Peck