Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.

Add script to generate ETH wallpapers#3

Merged
owocki merged 4 commits intogitcoinco:masterfrom
adtac:adtac/wallpaper
Dec 11, 2017
Merged

Add script to generate ETH wallpapers#3
owocki merged 4 commits intogitcoinco:masterfrom
adtac:adtac/wallpaper

Conversation

@adtac
Copy link
Copy Markdown
Contributor

@adtac adtac commented Dec 8, 2017

No description provided.

"top-left": [(0.498, 0.183), (0.393, 0.445), (0.498, 0.538), (0.498, 0.183)],
"top-right": [(0.498, 0.183), (0.604, 0.445), (0.498, 0.538), (0.498, 0.183)],
"bottom-left": [(0.392, 0.472), (0.498, 0.567), (0.498, 0.697), (0.392, 0.472)],
"bottom-right": [(0.605, 0.472), (0.498, 0.567), (0.498, 0.697), (0.605, 0.472)],
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're wondering what these magic numbers are, they are just polygon vertice points (relative to image dimensions).

@@ -0,0 +1,70 @@
import sys
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you modify this to be an executable python script?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

"bottom-right": "top-left",
}

im = Image.open(sys.argv[1])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to organize all of this logic into methods and implement a main method that calls the specific functions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

@owocki owocki mentioned this pull request Dec 8, 2017
@owocki
Copy link
Copy Markdown
Contributor

owocki commented Dec 8, 2017

left some comments back on the issue itself

@adtac
Copy link
Copy Markdown
Contributor Author

adtac commented Dec 9, 2017

@owocki @mbeacom

  • You can now run the script as an executable from the command line. The sytax is ./main.py input.jpg output.jpg [ETH_SCALE].

  • The third arg (ETH_SCALE) defines how large/small the ETH logo will be. A value of 1 means it'll be sized the same way as the foundation wallpapers.

  • Moved logical components into separate functions and created a main method to handle the processing (check out the code).

  • Applying a 30% opacity filter on top of each diamond segment to make the logo look more prominent.

@owocki
Copy link
Copy Markdown
Contributor

owocki commented Dec 11, 2017

grand_tetons
output

awesome!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants