Skip to content

Commit

Permalink
chore: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
clarencepalmer committed Dec 2, 2024
1 parent 1a9c0df commit c3654cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/send_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ def main() -> None:
with open('cat.jpg', 'rb') as f:
img_data = f.read()

# Add image aspect ratio to prevent default 1:1 aspect ratio
# Replace with your desired aspect ratio
aspect_ratio = models.AppBskyEmbedDefs.AspectRatio(height=100, width=100)

client.send_image(
Expand Down
3 changes: 3 additions & 0 deletions examples/send_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ def main() -> None:
'of the image (ALT)',
'This parameter is optional',
]

# Add image aspect ratio to prevent default 1:1 aspect ratio
# Replace with your desired aspect ratio
image_aspect_ratios = [
models.AppBskyEmbedDefs.AspectRatio(height=1, width=1),
models.AppBskyEmbedDefs.AspectRatio(height=4, width=3),
Expand Down

0 comments on commit c3654cc

Please sign in to comment.