September 08, 2002
Tearful Bitmap Effects

This is another little demonstration of my Image->RGB info tool. The effect is very subtle in this case and I removed the slap function.

For the technically interested here is how the picture-to-pixelinfo thing works:

Problem 1: Flash can load JPEGs, but you can not read out the RGB value of a pixel at location x/y.

Workaround: Extract the RGB information with a tool like GD on the server and load this data to the flash file by one of the possible methods: XML, loadVars or loadMovie.

Problem 2: Image data gets huge pretty quickly - a 20x20 picture has 400 pixels, a 200x200 has alrady 40000 pixels. One RGB pixel consist of three 8-bit values which, if you (could) use the full ASCII code would fit into three chars which means 200x200x3 = 120000 chars. Unfortunately if you want to use XML or loadVars you cannot use the full ASCII code, as some chars have special functions, like "&" or the null. this means you have to send the data differently, for example in the usual color notation hex code #aabbcc. Makes it in optimum case 200x200x6=240000 chars, but this case means that you would send the whole information in one big string and have flash do the parsing. Uh Uh... With Flash's rank as "Slowest String Parsing Application In The Known Universe" that's not a good idea. So maybe split the data into smaller chunks already on the server, perhaps into scanlines. (First I should mention that using XML is definitely not an option, the markup overhead, plus the parsing makes it pretty useless in our case.) Okay let's try - each line gets stored in a variable, variable name as short as possible L0=aabbccdd22333444... to L199=1235634334455... - do not forget to count the "=" and the "&" in the querystring - well it's about 1000 extra chars. This could work, but is it the best we can get? No. In comes the

LoadMovie Method: The ideal method would be a file that contains an array with all image data. No need to parse anything, highly compacted, with fast-access data. And that's exactly what we'll do: we create an swf on the server that contains only actionscript, actually only one line: data=[123123132,23452456235,1234143132,35345234346345,...] this is our image information. The numbers are 32 bit values, as flash internally stores all numbers this way and if you would use 24 bit you loose 8 bit for each number. This creates a little more calculation on readout as you will need some bit shifting, but it saves you 40000 chars. To create the swf is easier than it sounds. You just need to create a basic file with the editor, and check out the P-code that it creates with a hex-editor or tools like Buraks ASV. Then you should check out the open-swf specifications for certain bytes that have to be set correct. That's almost all.

Optimizations: For most cases it is not necessary to have to 100% exact image data. That's why I almost saved another 2/3rd by creating a kind of PNG format, with a color table. This means you only have 256 different colors, but you only need 1 byte per pixel, plus 256*3 Bytes for the color table. But you can get it even smaller if you only need the data for Flash MX - simply add GZip compression. I was amazed how easy that is. In PHP you just use the command "gzcompress" on the whole movie (without the header and the filesize info) and are ready to go.

Where is the sourcecode? Well, the reason why I did not put up the sources yet is that I used an advanced version where I add the image itself to the file. Therefore I used parts from Stefan Schüßler's FlashWriter Toolkit v1.02. Unfortunately I do not find the non-picture version anymore (I'm a chaotic overwriter-programmer) and I haven't asked Stefan for his permission yet.

Posted at September 08, 2002 02:42 PM | Further reading
Comments

I'd love to copy paste your creation on my site!
www.cryingboyfanclub.nl If this is not possible I'd love to copy paste the still picture (maybe you can send it to me? kelle186@planet.nl ) I haven't got it in my collection yet! Very great work! Kind greetings Michiel

Posted by: michiel on September 24, 2002 01:32 AM

interesting ideas. i just finished making something where i did send the image data in flash via xml. since i sampled every fourth pixel in every fourth row, the file size ends up pretty manageable.

www.bit-101.com/content/021126.swf

Posted by: bit-101 on November 28, 2002 11:52 PM

I have a copy of Bragolin's crying boy I bought for $10AU (australia) in a second hand shop, his eyes called me, and though the shop assistants weren't willing to sell him, i talked them round. The background is a dark green forrest colour, the boy is wearing a dark blue turtle neck sweater and is turned slightly side on, his face looks as if he has just been scolded for something he didn't know was wrong and his tears are that of bewilderment and slightly hurt. I work for a lady who has the same boy but maybe a year younger, he's wearing a red jumper and his face looks more upset and harder than mine. I'd like to hear from anyone with these paintings and what they think. sometimes i feel like this child, who I have named Yorick, is my soul child and in the future (Im 19) will give birth to someone like him...strange I know, but the paintings are very powerful. What do you guys think? please email me at: funkingespionage@pierced.com

Posted by: Rachel on February 11, 2003 06:22 AM

i have 2 pictures of the boy and girl crying by g beagolin if you also have any of the 4 pictures please send me some pics of them thanx

Posted by: Donna on August 5, 2003 10:49 PM

We have an original signed portrait of the crying boy in dark blue turtle neck. In original frame. What is its market value?

Megg & Greg Kothe

Posted by: MeggandGreg on September 15, 2003 06:53 PM

I have a copy of a boy crying painting, hes wearing a red jumper and dark blue or black jacket (opened) and the background is purple. His eyes follows me wherever i go in the room.
I dont know where it came from or who bought it to me, but i always had it in my room since i was a little child myself. Back then i was abit afraid of the painting, especially after my father's friend told me that the house would burn down if the painting hang on the wall. I heard one shall not split the boy and girl crying paintings, so im looking for the girl painting (copy is fine). Where can one buy these today? Today im 22 years old and i this painting is special to me. If you have one to sell, or you have one and can tell me about it, ill be very happy for a mail from you. my emailadress is: cittcat@hotmail.com
Thank you.

Posted by: Isabel on January 25, 2004 05:38 PM

I have a copy of a boy crying painting, hes wearing a red jumper and dark blue or black jacket (opened) and the background is purple. His eyes follows me wherever i go in the room.
I dont know where it came from or who bought it to me, but i always had it in my room since i was a little child myself. Back then i was abit afraid of the painting, especially after my father's friend told me that the house would burn down if the painting hang on the wall. I heard one shall not split the boy and girl crying paintings, so im looking for the girl painting (copy is fine). Where can one buy these today? Today im 22 years old and i this painting is special to me. If you have one to sell, or you have one and can tell me about it, ill be very happy for a mail from you. my emailadress is: cittcat@hotmail.com
Thank you.

Posted by: Isabel on January 25, 2004 05:38 PM

I have an original crying boy painting purchased many years back in an art gallery. I am trying to discover more information about the artis. any help or suggestions would be appreciated.

thanks

Posted by: ar on February 21, 2004 05:53 PM

I have 2 different prints by bragolin. They spook my children and I am looking to get rid of them. If you are interested, I can provide pictures. k4mommy@yahoo.com

Posted by: Katherine on February 23, 2004 04:17 PM

Hello I have a crying girl that is signed by G.Bragolin and she is wearing a orangeish color dress with a rope belt, she has brown hair that is a little longer than sholder langth and big brown eyes. She reminds me of me when I was younger and know my daughter. I wish that there was a musium for her so that for a long time to come others could apriciate the work. Well please E-Mail me if you have any questions about her or you know of any that are around.

Posted by: Danyel on March 24, 2004 11:52 PM

I have two pictures, one is larger of a boy crying. he is wearing a red shirt and black jacket and smaller one looks like a girl wearing a jumper with blue shirt. They both have the same background which is a purplish color. I bought mine from a couple who was on vacation in Norway where they purchased the pictures. The larger one is signed. I love the portraits and have tried to find out about the artist. No luck

Posted by: Mary Kramer on May 10, 2004 03:01 AM

I have looked at the pictures you have on this page, mine is not like any of them. Both of mine resemble yours but are not the same.

Posted by: Mary Kramer on May 10, 2004 03:15 AM

i have a copy of the crying girl at my works england everyone has declined to know where it came from i have thrown it out today because i can't stand to have it there with me after so many horror stories from people. yet i am not afraid of the girl but there is something kind of spooky i can't explain

Posted by: krist on August 26, 2004 04:02 PM

i've done the same in a different way (well, sort of)

check it out http://tmp7.caj.spb.ru/st/letters1.swf

each letter is described by 2 dimensional array which is generated by loading Photoshop RAW file into flash as XML (you can load ani binary data this way, the only limitation is that no special ascii codes should be present)

Posted by: serge on September 15, 2004 09:42 PM

Hi Im from Brazil and these painting are well know here. Sorry my poor english since it isn't my mother language. Im not a superstition person i'm a very rational and try to always find reason in things. The author is Giovanni Bragolin and feelings of terror and illness are always associated with his paintings. The author painted 28 comfirmed paintings of various children crying, those paintings were very famous here in Brazil in mid 80's. These paintings, after some closer investigation, show some really nasty and horrendous scenes. I've seem all the 28 and i can assure you all of those paitings are representing DEAD children. These painting are filled with "subliminares" (don't know how to tranlaste it into english) evil messages. For example in the photo above the right face and left torso of the child are severely burned with even some bones showing off in his shoulder, you can clearly see his ribs beneath his shirt. The pupils are dilated, despite the fact of light in every painting. Another clue the children are dead alredy. Every painting has those terrible subte messages.
PLEASE if you have one of those paintings throw it away right now. Giovanni Bragolin regreted his actions and in late 80's he appeared in the biggest TV channel here in Brazil, Rede Globo, and told to everyone who have copies or originals to destroy them, because he made a evil pact to sell his paintings.
People say those paintings bring extremelly miss fortune and disgrace to the owners. Thiis i cant 100% believe but the fact is: These are paintings of dead children with a lot of satanistic reference. A kind of paiting that i surely don't want in my house.
If you want more information on these paintings frll free to e-mail me.

Posted by: Rodrigo Faria on December 12, 2004 06:01 PM

I have two of the crying childern, Both have signature . I have had the crying boy and girl with me for 23 years, The women who gave them to me had them in a basement for many years they were in newspaper that was dated 1947. That was how long she had them packed away. I live in chesterfield VA.USA

Posted by: maddy on December 19, 2004 05:09 PM

looking to sell two one crying boy and one crying girl together only.e-mail me at maddy377@hotmail.com

Posted by: maddy on December 19, 2004 05:18 PM

alguem poderia me dizer qual o significado deste quadro..oque o quadro esta expressando?

Posted by: Marcos on February 8, 2005 03:05 AM

WHAT DOSE THE CRYING GIRL MEAN?????

Posted by: NIKKI on April 6, 2005 02:21 AM

Hello! I'm from Finland and I need some information about Bragolin, very soon. So if someone knows something so please write to me! Thanks.

Posted by: Tarja on April 7, 2005 12:59 PM

I have one old stamp of girl crying of G. Beagolin,I did't find nottingh online but I suppouse He was italian ...someone know more?Mr.Toni?Thanks

Posted by: Cinzia on May 4, 2005 11:57 AM

have one old stamp of girl crying of G. Beagolin,I did't find nottingh online but I suppouse He was italian ...someone know more?Mr.Toni?Thanks

Posted by: cii on May 4, 2005 11:57 AM

i wish they would take my neighbours crying kids away....they keep me up at night. Can anyone buy them?

Posted by: matt on May 17, 2005 03:20 AM

shit shit shit the sit

Posted by: shit shit shit the sit on May 24, 2005 08:30 PM

I presume that should become a poem? Nice Rhythm.

Posted by: Mario Klingemann on May 24, 2005 09:00 PM

I have a G.Bragolin crying boy print and want to know more about it, its signed, can anyone help me.

Posted by: tina on June 23, 2005 10:36 PM

My mother has three paintings by beagolin, one of a small girl crying and two of small boys crying (the one boy is your favorite painting with the red eyes) only crying..let me know about them

Posted by: linda on September 15, 2005 09:51 PM

I just recently acquired the "crying girl" signed by G Bragolin on the top right hand corner of the painting. She's got long brown hair with orangeish colour dress with a rope belt. How can one tell if it is a print or an actual painting? Pls advise. On the back of the frame is a tiny sticker (half torn)stating "pictures of distinction" and underneath - with what's left of the paper stating "ambina ragolin" - possibly Gambina Bragolin? Could this have been displayed in an art gallery before?

Posted by: Linette Misa on October 12, 2005 01:44 AM

Hi, I'm Braziliam too and what Serge said is the truth, Bruno Amadio, popularly known as Bragolin, and also known as Franchot Seville, Giovanni Bragolin, and J. Bragolin ( the supposed creator of a group of paintings known as Crying Boys) said on a very important channel that he had mad some pact with the devil and the paintings were evil. I don't know why he did that but it started a urban legend here and many people through their paintings away. Maybe he needed money, Fantastico is a good show today but it used to be really sensationalistic before, anyway, there are some pages dedicated to this paintings, they're in portuguese but you'll be able to see all of Bragolim's paintings on this page:
http://www.tabernaculonet.com.br/subliminar/quadros/cri_chorando/todosquadros.html

Posted by: Delinda on November 15, 2005 08:11 PM

I Have a Crying Girl And Boy pictures that i would like to sell. if your intrested email me. at quentinuys@yahoo.com

Posted by: Savage on November 25, 2005 11:25 PM

This is very beautifull! Thank you for showing it !!

Posted by: georgette on December 16, 2005 01:25 AM

eu sou do brasil parabens pelas imagens

Posted by: lucas on January 20, 2006 09:19 PM
Post a comment
Name:


Email Address:


URL:


Comments:


Remember info?



Thank you!

Most Visited Entries
Sketches, Works & Source Code
Lectures
Contact
Backlog
In Love with
Powered by
Movable Type 2.661

© Copyright Mario Klingemann

Syndicate this site:
RSS 1.0 - RSS 2.0

Quasimondo @ flickr
Quasimondo @ LinkedIn
Quasimondo @ Twitter
Quasimondo @ Facebook
Quasimondo @ MySpace
Quasimondo is a Bright
Citizen of the TRansnational Republic
My other blog in german
Impressum


My family name is written Klingemann,
not Klingelmann, Klingeman, Klingaman, Kingemann,
Kindermann, Killingaman, Klingman, Klingmann, Klingonman
Klingemman, Cleangerman, Klingerman or Kleangerman

profile for Quasimondo at Stack Overflow, Q&A for professional and enthusiast programmers