Problems in web image handling

Cees de Groot cg at tric.nl
Fri Feb 6 11:21:39 UTC 2004


Hi,

I am fond of using image imports with Seaside in order to keep static
images around in the, err, image (oh gosh, this is going to be
complicated). A typical class-side method looks like:

MyFrame class>>logo
    ^Imports default imports at: #myLogo 
	ifAbsentPut: [Form fromFileNamed: 'mylogo.gif']

Use in Seaside is through the method #imageWithForm: which, at the end
of the day, uses Form>>asWebImage to display the actual gif. 

The problem is - the gif that ends up being displayed in the browser
is decidedly different from the 'original artwork' on disk. Compare for
example http://tai42.xs4all.nl/~cg/lotus8-bars.gif with
http://www.admorphis.com/en/@cMfxCHNWOiJyKfmP - in this particular case,
the colors are mostly the same but white dots appear in the 'munged'
image that are not in the original.

Is there something I'm missing here?




-- 
Cees de Groot               http://www.tric.nl     <cg at tric.nl>
tric, the new way           helpdesk/ticketing software, VoIP/CTI, 
                            web applications, custom development




More information about the Squeak-dev mailing list