Skip to content
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

feat: Add preview images for embeds #34

Merged
merged 2 commits into from
Oct 20, 2024

Conversation

antheas
Copy link
Contributor

@antheas antheas commented Oct 20, 2024

Allows for specifying in markdown the description, image, and alpha values.

Accepted formats:

# Simple
# Uses a default blend setting with purple and crops
preview: ../img/distrobox.png
description: |
   Distrobox is ...
# Expanded
preview:
   src: ../img/distrobox.png
   alpha: 150 # from 0 (invisible) to 255 (fully visible)
   contain: True # For images with transparent sides only, center the image without cropping
description: |
   Distrobox is ...

@Zeglius Zeglius merged commit 8cf5bd7 into KyleGospo:main Oct 20, 2024
@antheas antheas deleted the add-preview-images branch October 20, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants