-
-
Notifications
You must be signed in to change notification settings - Fork 565
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: generate alt-text with ai #2875
base: main
Are you sure you want to change the base?
Conversation
Run & review this pull request in StackBlitz Codeflow. |
✅ Deploy Preview for elk-docs canceled.
|
✅ Deploy Preview for elk-zone ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
|
a25aec8
to
61196ad
Compare
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
41f00a7
to
61d4fd2
Compare
I run out of ideas how to get the image (either as dataUrl or blob) as every attempt results in cors issues 🙁 ... trying out: https://www.hacksoft.io/blog/handle-images-cors-error-in-chrome |
5f5c7a4
to
b57be9f
Compare
b57be9f
to
83bcf82
Compare
It looks like the cors error is only on https://media.universeodon.com, but when I use my own account from mas.to I dont get a cors error on https://media.mas.to and it works 👀 |
how about using fetch with |
Will try later, need some sleep 😴 |
NOTE: maybe we can store the image temporarily in cache storage (similar to the model) instead of directly uploading the image to the server (we would also use the image from the cache in the preview and the dialog), this way, CORS problem will disappear (we'll need to change the publish logic)
|
Just as a note for FFR: I still have the idea in my head, however I observe the evolution of |
This feature adds a Copilot-AI to the image-alt-text editor so it is possible to click a button that just generates an example text for the image.
Aufzeichnung.2024-05-27.211052.mp4
Open TODOs:
The download will only be done when the user confirms
props.attachment.url
might not be usable due to cors error?!