pne: A barcode representing the digits "688700207914", derived from my Dreamwidth userid (barcode)
Philip Newton ([personal profile] pne) wrote in [site community profile] dw_nifty2010-04-12 01:25 pm

DW barcodes

A long time ago (May 2003), [ profile] adcott had a barcode maker that would generate barcodes based on a LiveJournal user's username and internal ID. (That barcode maker no longer exists.)

As part of my migration to Dreamwidth, I figured I should update the barcode icon that I had made based on that image to refer to Dreamwidth: the first four digits are now based on the ASCII codes of “DW” rather than those of “LJ”, and the remainder come from my Dreamwidth user ID rather than my LiveJournal one.

The barcode looks different since I don't have the font the original used. But the style I'm using has the advantage that the barcode fits into a LJ/DW icon; the original had the first and last plaintext digits outside the bars, making it wider than 100 pixels unless you chopped them off. (A disadvantage of the font is that wide letters such as 'm' or 'w' will be right next to the next letter, without a space in between.)

And, like the original, it should still be a valid UPC or EAN-13 barcode (the check-digit is calculated rather than being fixed).

If anyone else would like to create a similar barcode, feel free to use my Dreamwidth barcode maker, or enter the desired username here: and press .

Limitations: There’s only enough room for 14 letters at the top (actually, one pixel less than you'd need for 14), so if your username is longer than that, it'll get chopped off at the front and/or back.

While it's theoretically possible to embed the output of the barcode generator into a page with an “img” tag (it’s a plain 2-colour B/W 97×72 PNG image), I’d like to ask that you not hotlink the images like that, to spare my bandwidth. Instead, save them to your own webspace (or upload them as a Dreamwidth icon).

Uppercase/lowercase is ignored; however, images are cached by default and the generated image will use the capitalisation your first used. So if you request “ExampleUserName”, it’ll show you an image with that capitalisation even if you later ask for the barcode for “exampleusername” or even “exaMplEusERNamE”.

If it can’t find the username, then it’ll give you a barcode with all zeroes for the user ID number.

Since Dreamwidth communities URLs behave like journal ones, you can even create barcodes for them -- e.g. [site community profile] dw_nifty.

If you use the output of my barcode generator, I'd appreciate attribution: something like “created with [personal profile] pne’s barcode generator” would be fine. (Just out of courtesy and to make people aware of the tool; I imagine the output is public domain since there's basically no creativity involved that I could claim copyright over.) You can also add the URL: (Which I hope will remain stable, though I can’t promise it.)

Suggestions are welcome. (For example, I wonder whether black-on-white or black-on-transparent would be better? It's currently black-on-white, with a 1px white border.)

brewsternorth: Electric-blue stylized teapot, captioned "Brewster North". (Default)

[personal profile] brewsternorth 2010-04-13 03:29 pm (UTC)(link)
(For example, I wonder whether black-on-white or black-on-transparent would be better? It's currently black-on-white, with a 1px white border.)

I'd advise against black-on-transparent simply because it's likely to look funny on different layouts, but that's me with my publishing nerd hat on.

Otherwise, it's a nifty idea!
triadruid: Apollo and the Raven, c. 480 BC , Pistoxenus Painter  (Default)

[personal profile] triadruid 2010-04-13 06:25 pm (UTC)(link)
Agreed; black-on-white is pretty standard for 'real' bar codes, so it makes sense to perpetuate it rather than have to deal with "but my barcode is invisibul!".

People can always clip the white if they want/need the transparent look.
inarticulate: Rui from Lux-Pain (engage!)

[personal profile] inarticulate 2010-04-13 03:37 pm (UTC)(link)
It looks pretty awesome to me; thank you for sharing this!
yvi: Kaylee half-smiling, looking very pretty (Default)

[personal profile] yvi 2010-04-13 03:42 pm (UTC)(link)
Oh, nifty!

Maybe I am slow here, but why is the userid in yours not 20791, but 207914? (Mine also has a 6th didgit even though my userid only has 5)
Edited 2010-04-13 15:42 (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)

[personal profile] matgb 2010-04-13 04:01 pm (UTC)(link)
Guess: barcodes always have a checkdigit encoded at the end to confirm the other numbers are correct, I forget how they're worked out, could be that?

Beyond that, yes, cool, will use when I can pay again.

(no subject)

[personal profile] yvi - 2010-04-13 16:02 (UTC) - Expand
iadorespike: (Default)

[personal profile] iadorespike 2010-04-13 03:43 pm (UTC)(link)
This is cool. Thanks!
anatsuno: a barcode representing anatsuno's username and account number on Dreamwidth (barcode)

[personal profile] anatsuno 2010-04-13 03:56 pm (UTC)(link)
super nifty! done and done. :D

(no subject)

[personal profile] anatsuno - 2010-04-13 17:42 (UTC) - Expand
stormy: ❪ 𝐍𝐎𝐓𝐈𝐂𝐄 ❫ 𝑫𝑶 𝑵𝑶𝑻 𝑻𝑨𝑲𝑬 𝑴𝒀 𝑰𝑪𝑶𝑵𝑺 ⊘ (Default)

[personal profile] stormy 2010-04-13 03:59 pm (UTC)(link)
Snagged mine. I like the standard white on black.

138516 is my number, so it gets shoved to the left and a 1 is added afterwards. Not sure why.
dusty: (Default)

[personal profile] dusty 2010-04-13 04:05 pm (UTC)(link)
very interesting, took mine! and am going to memory this post!
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2010-04-13 04:36 pm (UTC)(link)
Thank you; these are cool.
giglet: (barcode)

[personal profile] giglet 2010-04-13 05:14 pm (UTC)(link)
Fantastic! Thank you!
baggyeyes: Princess Leia (Default)

[personal profile] baggyeyes 2010-04-13 05:36 pm (UTC)(link)
Way cool!
tanaqui: Illumiinated letter T (Default)

[personal profile] tanaqui 2010-04-13 05:45 pm (UTC)(link)
Very neat! Thanks for sharing
vanessagalore: (Default)

[personal profile] vanessagalore 2010-04-13 06:30 pm (UTC)(link)
An excellent preparation for the time when the US Dept of Homeland Security tattoos our national ID number on our foreheads!! (it's coming, along with the microchip to track our movements, and the elimination of the cash economy.)

But seriously, cool stuff. Will credit.
lo_rez: Dreamwidth barcode with lo_rez username, by pne (DW barcode icon by pne!)

[personal profile] lo_rez 2010-04-13 08:13 pm (UTC)(link)
Love it! Thank you!
mmmag: A cotton cloud with drop shaped beads dangling below. (Misc: DW barcode)

[personal profile] mmmag 2010-04-13 09:45 pm (UTC)(link)
Thanks! This is great.
ursamajor: "barcode" from (barcode)

[personal profile] ursamajor 2010-04-13 10:11 pm (UTC)(link)
Ooh, I remember when that came around on LJ. Thanks for updating it! :)
auburn: (Binary)

[personal profile] auburn 2010-04-13 10:29 pm (UTC)(link)
Amusing and neat looking. Black on white looks best to me, like others have said, but I might play with the image a little. Thanks for sharing your work on this.
Edited 2010-04-13 22:30 (UTC)
chalcopyrite: Barcode of chalcopyrite (barcode)

[personal profile] chalcopyrite 2010-04-13 11:36 pm (UTC)(link)
This is very nifty! Thank you!
unavee: (barcode)

[personal profile] unavee 2010-04-14 12:04 am (UTC)(link)
Very nifty! Thank you :D
sam_gardener: dreamwidth barcode for sam_gardener (dw barcode)

[personal profile] sam_gardener 2010-04-14 12:15 am (UTC)(link)
This is fun! Thank you.
zillah975: Painting of my Night Elf, Tyrnathera Stormcaller (barcode)

[personal profile] zillah975 2010-04-14 12:36 am (UTC)(link)
That is indeed nifty! Snagged and credited. :)
chaosmanor: (barcode)

[personal profile] chaosmanor 2010-04-14 03:29 am (UTC)(link)
I am a retail manager for my day job, and spend all my working life with a barcode scanner in my hand.

This icon makes me happy.

Thank you!
kaiz: barcode via pne ( (barcode)

[personal profile] kaiz 2010-04-14 03:53 am (UTC)(link)
This is so awesome, thanks!
st_aurafina: rainbow barcode with my DW number on it (Dreamwidth: Rainbow Barcode)

[personal profile] st_aurafina 2010-04-14 06:55 am (UTC)(link)
Thank you for this! It's very cool.
triadruid: My mutt dog, Fractal, with the caption "Hi!!! ... throw the ball?" (throw the ball)

[personal profile] triadruid 2010-04-15 04:00 pm (UTC)(link)
Hah! Nice mod...
schnurble: (Barcode)

[personal profile] schnurble 2010-04-14 09:06 am (UTC)(link)
Very cool indeed! Thanks for sharing!
turlough: Gabe Saporta doing thumbs-up ((cs) gabe approves)

[personal profile] turlough 2010-04-14 03:08 pm (UTC)(link)
Fun! Thank you for sharing it with us.

Page 1 of 2

<< [1] [2] >>