This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <details> | |
| <summary>welcome to ravel!</summary> | |
| <details> | |
| <summary>ravel is a tool for making unfolding texts out of the html details tag.</summary> | |
| <details> | |
| <summary>write text in the "Write" tab, left</summary> | |
| <div>(click on any piece of text to edit it)</div> | |
| <details> | |
| <summary>while writing, press enter to make a new node of editable text</summary> | |
| <div>it will be nested under the node you were writing in</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <img src="https://glitch-art.vercel.app/api/simple?word=eliana" alt="Glitch Art" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image | |
| import os | |
| import shutil | |
| def get_aspect_ratio(image_path): | |
| with Image.open(image_path) as img: | |
| width, height = img.size | |
| aspect_ratio = float(width) / float(height) | |
| return aspect_ratio |
OlderNewer