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

Feature: add option to save images as attachments #140

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kpzart
Copy link

@kpzart kpzart commented Dec 19, 2024

This adds the option org-ai-save-image-as-attachment to store images as attachments of the current org heading instead in a static dir.

This PR also makes the filename more unique by adding the time of day. This is necessary to prevent collision, because the files are moved to the attachment dir after downloading them to org-ai-image-directory (I considered downloading directly to attachment dir but it would be less canonical and implies more code changes). I also ensured that images created by the same request have the same timestamp.

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.

1 participant