[Seaside] html images

Frank Sukhu fsukhu at gmail.com
Sat Jul 8 20:22:40 UTC 2006


Greetings,

I have some code that generates html with an embedded image <IMG>.  I have
tried two ways of doing this:

Option 1.   html imageWithForm: (ImageReadWriter formFromFileNamed: fn).

Option 2.   html image: fn.

where 'fn' is the pathname of the jpg file in my filesystem, e.g.,
"/foo/bar.jpg".


When I use Option 1, the resulting image is very grainy - almost unusable.
Option 2 produces good results.  I am trying to figure out why this is the
case.

Why is it that ImageReadWriter produces such a poor image when compared to
the exact file being served by the httpserver?

I would appreciate any clues or pointers.

Thanks,
Frank





More information about the Seaside mailing list