New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Cover of The Sun Also Rises #190

Open
adregan opened this Issue Dec 1, 2015 · 8 comments

Comments

Projects
None yet
4 participants
@adregan

adregan commented Dec 1, 2015

I generated this in the middle of Nov. and forgot to submit it: alsorises.org

The code used to generate it is here (the scripts are in the book_scripts dir): https://github.com/adregan/pnger

I took a picture of the cover of The Sun Also Rises converted it to a PNG and then decoded the PNG and for each pixel got the nearest named color. It's 800 chapters long and 803,218 word (according to wc). There is also an audio book version that's 173 hours and like 2.5 gigs.

@hugovk hugovk added the completed label Dec 2, 2015

@hugovk

This comment has been minimized.

Show comment
Hide comment
@hugovk

hugovk Dec 2, 2015

Collaborator

Wow!

Collaborator

hugovk commented Dec 2, 2015

Wow!

@greg-kennedy

This comment has been minimized.

Show comment
Hide comment
@greg-kennedy

greg-kennedy Dec 2, 2015

Chapter 786 includes a sentence "Black, invisible."... It looks like your image had exactly one transparent (alpha-channel=0) pixel! This may be the highlight of the entire novel.

I couldn't read 800 chapters of this, so I coded a script to do it for me. Consider this the Cliff's Notes version:
out

greg-kennedy commented Dec 2, 2015

Chapter 786 includes a sentence "Black, invisible."... It looks like your image had exactly one transparent (alpha-channel=0) pixel! This may be the highlight of the entire novel.

I couldn't read 800 chapters of this, so I coded a script to do it for me. Consider this the Cliff's Notes version:
out

@adregan

This comment has been minimized.

Show comment
Hide comment
@adregan

adregan Dec 2, 2015

That is amazing @greg-kennedy! And I did in fact delete a single pixel leaving a transparent hole. There was a practical reason (seemingly), but I'm glad it's taken on a new life.

adregan commented Dec 2, 2015

That is amazing @greg-kennedy! And I did in fact delete a single pixel leaving a transparent hole. There was a practical reason (seemingly), but I'm glad it's taken on a new life.

@hugovk

This comment has been minimized.

Show comment
Hide comment
@hugovk

hugovk Dec 2, 2015

Collaborator

It's great the original image was preserved so well in the book!

For your next trick, @greg-kennedy, decode the cover from the audiobook.

Collaborator

hugovk commented Dec 2, 2015

It's great the original image was preserved so well in the book!

For your next trick, @greg-kennedy, decode the cover from the audiobook.

@muffinista

This comment has been minimized.

Show comment
Hide comment
@muffinista

muffinista Dec 2, 2015

Wow, this is awesome, well done! It's random, but at certain screen sizes it seems like you can't click on a couple links:

screenshot 2015-12-02 16 24 31

Neither "read online" or the hidden link are clickable for me, although resizing fixes it.

muffinista commented Dec 2, 2015

Wow, this is awesome, well done! It's random, but at certain screen sizes it seems like you can't click on a couple links:

screenshot 2015-12-02 16 24 31

Neither "read online" or the hidden link are clickable for me, although resizing fixes it.

@adregan

This comment has been minimized.

Show comment
Hide comment
@adregan

adregan Dec 2, 2015

I forgot about that bug. Do you by chance have scrollbars on @muffinista?

I need to try to fix this up. The problem is that I am using the css viewport relative units and for some reason, the browser isn't taking into account the scrollbars, so the elements are as large as if there weren't scrollbars but behave as if the width of the viewport is the width with the scrollbars.

adregan commented Dec 2, 2015

I forgot about that bug. Do you by chance have scrollbars on @muffinista?

I need to try to fix this up. The problem is that I am using the css viewport relative units and for some reason, the browser isn't taking into account the scrollbars, so the elements are as large as if there weren't scrollbars but behave as if the width of the viewport is the width with the scrollbars.

@muffinista

This comment has been minimized.

Show comment
Hide comment
@muffinista

muffinista Dec 2, 2015

I think I do? I have a vertical scrollbar on the page anyway. Here's a bigger screenshot:
screenshot 2015-12-02 16 43 33

muffinista commented Dec 2, 2015

I think I do? I have a vertical scrollbar on the page anyway. Here's a bigger screenshot:
screenshot 2015-12-02 16 43 33

@adregan

This comment has been minimized.

Show comment
Hide comment
@adregan

adregan Dec 2, 2015

There are the scrollbars :D. I added a quick fix, so you should be able to read all the text now.

adregan commented Dec 2, 2015

There are the scrollbars :D. I added a quick fix, so you should be able to read all the text now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment