Tamanna Hossain-Kay

Thoughts and plots on AI and the human condition

Viz : Encoded Photo - An Anniversary Card

Tamanna Hossain-Kay / 2017-12-22


For my husband on our third anniversary. Encoded in binary in this photo of us is three love poems that I really like - one by Yeats, two by Robert Graves.

All required code is on Github. The density of the image matrix is varied along a frame boundary allowing the bits constructing the image to peak through. A custom hexadecimal palette is used with the red, green, and blue channels each binned by 3, thus reducing the color space by a factor of 33.

The encoded poems are -

Aedh Wishes for the Cloths of Heaven W.B. Yeats

Had I the heavens’ embroidered cloths,
Enwrought with golden and silver light,
The blue and the dim and the dark cloths
Of night and light and the half light,
I would spread the cloths under your feet:
But I, being poor, have only my dreams;
I have spread my dreams under your feet;
Tread softly because you tread on my dreams.

Counting the Beats Robert Graves

You, love, and I,
(He whispers) you and I,
And if no more than only you and I,
What care you or I?

Counting the beats,
Couting the slow heart beats,
The bleeding to death of time in slow heart beats,
Wakeful they lie.

Cloudless day,
Night, and a cloudless day,
Yet the huge storm will burst upon their heads one day
From a bitter sky.

Where shall we be,
(She whispers) where shall we be,
When death strikes home, O where then shall we be
Who were you and I?

Not there but here,
(He whispers) only here,
As we are, here, together, now and here,
Always you and I.

Counting the beats,
Counting the slow heart beats,
The bleeding to death of time in slow heart beats,
Wakeful they lie.

She Tells Her Love While Half Asleep
Robert Graves

She tells her love while half asleep,
In the dark hours,
With half-words whispered low:
As Earth stirs in her winter sleep
And puts out grass and flowers
Despite the snow,
Despite the falling snow