Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/face.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const openai = new OpenAI();

const facePath = path.resolve("..", "public/asynctalk-annatarhe.jpg");

async function createFile(filePath) {
const fileContent = fs.createReadStream(facePath);
async function createFile(filePath: string) {
const fileContent = fs.createReadStream(filePath);
const result = await openai.files.create({
file: fileContent,
purpose: "vision",
Expand Down
5 changes: 3 additions & 2 deletions scripts/generate-thumbnail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ async function main() {
{
type: "input_image",
file_id: hostFaceFileId,
detail: "auto",
},
],
},
Expand All @@ -145,8 +146,8 @@ async function main() {
.filter((output) => output.type === "image_generation_call")
.map((output) => output.result);

if (imageData.length > 0) {
const imageBase64 = imageData[0];
const imageBase64 = imageData[0];
if (imageBase64) {
await writeProcessedImage(
Buffer.from(imageBase64, "base64"),
outputPath,
Expand Down
7 changes: 6 additions & 1 deletion src/components/OpenGraph/OG.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { readFileSync } from "node:fs";
import path from "node:path";

const primaryColor = 'oklch(71.33% 0.112 194.94)'
const ratio = 1.5
const logo = 'https://ik.imagekit.io/annatarhe/asynctalk-logo.png?updatedAt=1716360363124'
const logo = `data:image/png;base64,${readFileSync(
path.resolve("./src/images/logo.png"),
).toString("base64")}`

const titleFontSize = 3 * ratio
const descriptionFontSize = 1.6 * ratio
Expand Down
Loading