zhuowei / nft_ptr

C++ `std::unique_ptr` that represents each object as an NFT on the Ethereum blockchain
https://worthdoingbadly.com
1.99k stars 36 forks source link

Optimize the whitepaper PDF #5

Closed Selicre closed 2 years ago

Selicre commented 3 years ago

One whole kilobyte? We have no time for such bloat. This pull request optimizes the whitepaper PDF to the smallest possible version that retains the original paper size, opens correctly in both Firefox and Chrome, and also is detected as a pdf by github so it gets served with the correct mime type.

This doesn't actually open properly in Acrobat Reader, but who cares.

zhuowei commented 3 years ago

Thank you so much! I'm probably going to keep the current version, but if I have time I'll try to debug why this doesn't work in Acrobat Reader.

Selicre commented 3 years ago

It's likely because both firefox and chrome are rather permissive with terminating brackets, but Acrobat Reader itself isn't.

randomdude999 commented 3 years ago

already working on acrobat support right now ;)

zhuowei commented 3 years ago

Thanks. To be honest, I'm probably not going to merge this, since using 994 bytes to display absolutely nothing is very much in agreement with the blockchain ethos. However, my next project will be a PDF based project (since I was amazed by rsnous's Breakout game in a PDF demo and would like to try something similar) so I'm interested in learning PDF tricks for the future.

Selicre commented 3 years ago

Well, rand made it open in acrobat reader anyway, if nothing else, this was fun. Acrobat still cowers in fear and tries to re-save it as a 4kB monstrocity, but hey, it works.