Log in

No account? Create an account
Palette-altered images - brad's life — LiveJournal [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Palette-altered images [May. 23rd, 2004|10:38 pm]
Brad Fitzpatrick
LiveJournal and FotoBilder have long supported the ability to modify the palette table of images as they fly out to the user. (no temporary files, etc)

Jesse recently uploaded a bunch of generic textures that people on LiveJournal can use.

Look how pretty my journal looks now!

It's not super simple to use yet, but it will be... we're gonna make an S2 customization widget (from the /customize/ area) to let you pick a texture (along with our existing DHTML color picker) and see the texture change in realtime and apply it to your background, etc.

This dumb hack never ceases to amuse me.

[User Picture]From: marksmith
2004-05-24 12:48 am (UTC)

S2 is love!

Sorry, couldn't resist.
(Reply) (Thread)
[User Picture]From: brad
2004-05-24 01:40 am (UTC)
Man, you could've picked a better texture, at least. :P
(Reply) (Parent) (Thread)
[User Picture]From: whitaker
2004-05-24 08:19 am (UTC)
Yeah, that one looks like a strip of multi-colored condoms.
(Reply) (Parent) (Thread)
[User Picture]From: vanbeast
2004-05-24 07:29 am (UTC)
I should kill you.
(Reply) (Parent) (Thread)
[User Picture]From: denshi
2004-05-24 08:11 am (UTC)
Yes, you should.
(Reply) (Parent) (Thread)
[User Picture]From: mart
2004-05-24 05:04 am (UTC)

class BackgroundProperties? Could have that keep an image URL and a colour and have a method on it to form and return a CSS background property specification:

background: #000000 url(http://blah);

The string version of that data to pass to the constructor from /customize/ can just be as simple as a color followed by whitespace followed by an optional URL. This also means that other kinds of special background could be allowed later such as “transparent”.

UI would allow the user to pick a colour or “transparent”, and if a colour is picked they can then choose between “solid color”, “pattern” or “other image”, where pattern is one of the new images. This mimicks roughly how it works in Windows while adding the transparent option. The preview in the customize interface itself (from which the “change” button will be clicked canjust be a slightly bigger version of the background-colour-box used in the colour picker, with the background properties applied to contents of that box.

I'm sure you already had something like this planned anyway, but whatever! I'm working on a layout right now which could use this. (Cleanly('s H| Sh)aven, finally.)

(Reply) (Thread)