We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to separate the images from the html file to save the html file and the images in a folder?
The text was updated successfully, but these errors were encountered:
Currently this isn't possible, but I would be open to possibly adding this as a feature.
I would need to think about how I would add this, as currently this package is supposed to return one file. maybe something like
import { randomBytes } from "crypto"; import { writeFileSync } from "fs"; createTranscript(channel, { callbacks: { resolveImageSrc: (imageData, ext) => { const id = randomBytes(20).toString('hex'); writeFileSync(`./images/${id}.${ext}`, imageData); return `/images/${id}`; } } });
Sorry, something went wrong.
Do you have any news about this functionality?
No branches or pull requests
Is it possible to separate the images from the html file to save the html file and the images in a folder?
The text was updated successfully, but these errors were encountered: