Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/$%7Bart_info.art.src%7D?q=image&page=73&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=image

Returns an array of strings in format "username" or "username/projectName"

Found 8470 results for "image"(1572ms)

testPondiversedeleteCreation2 matches

@argmnUpdated 1 week ago
41 // New: Replace the title, type and data with a message
42 await sqlite.execute(
43 `UPDATE ${TABLE_NAME} SET title = "Creation deleted by moderator", type = "", data = "", image = "" WHERE id = ?;`,
44 [id],
45 );
46
47 // Also delete the blob!
48 blob.delete("pondiverse_image" + id);
49 blob.delete("pondiverse_data" + id);
50

mfe-demoindex.html1 match

@hacksoreUpdated 1 week ago
6 <title>React Hono Val Town Starter</title>
7 <link rel="stylesheet" href="/frontend/style.css">
8 <link rel="icon" href="/frontend/favicon.svg" type="image/svg+xml">
9 </head>
10 <body>

discord-metadatamain.ts1 match

@hacksoreUpdated 1 week ago
54<meta content="${url}" property="og:url" />
55<meta name="theme-color" content="${color}">
56<meta name="twitter:card" content="summary_large_image"/>
57
58Nothing to see here

pdfindex.ts2 matches

@pro909Updated 1 week ago
33app.post("/api/merge", handleMerge);
34app.post("/api/split", handleSplit);
35app.post("/api/pdf-to-images", handleConvert);
36app.post("/api/images-to-pdf", handleConvert);
37app.post("/api/compress", handleCompress);
38app.post("/api/watermark", handleWatermark);

pdfconvert.ts24 matches

@pro909Updated 1 week ago
16 const operation = c.req.path.split('/').pop();
17
18 if (operation === 'pdf-to-images') {
19 return await handlePdfToImages(files, settings);
20 } else if (operation === 'images-to-pdf') {
21 return await handleImagesToPdf(files, settings);
22 }
23
32}
33
34async function handlePdfToImages(files: File[], settings: any): Promise<Response> {
35 if (files.length !== 1) {
36 return createErrorResponse("Exactly one PDF file is required");
42 }
43
44 // Note: PDF to image conversion requires a more complex library like pdf2pic
45 // For now, we'll return a placeholder response
46 return createJsonResponse({
47 success: false,
48 error: "PDF to image conversion is not yet implemented. This requires additional libraries for rendering PDF pages to images."
49 });
50}
51
52async function handleImagesToPdf(files: File[], settings: any): Promise<Response> {
53 if (files.length === 0) {
54 return createErrorResponse("At least one image file is required");
55 }
56
57 // Validate image files
58 const validImageTypes = ['image/png', 'image/jpeg', 'image/jpg'];
59 for (const file of files) {
60 if (!validImageTypes.includes(file.type)) {
61 return createErrorResponse(`Invalid image file: ${file.name}. Only PNG and JPG are supported.`);
62 }
63 }
66
67 for (const file of files) {
68 const imageBytes = await fileToArrayBuffer(file);
69
70 let image;
71 if (file.type === 'image/png') {
72 image = await pdfDoc.embedPng(imageBytes);
73 } else {
74 image = await pdfDoc.embedJpg(imageBytes);
75 }
76
77 // Create a page with the image
78 const page = pdfDoc.addPage([image.width, image.height]);
79 page.drawImage(image, {
80 x: 0,
81 y: 0,
82 width: image.width,
83 height: image.height,
84 });
85 }
86
87 const pdfBytes = await pdfDoc.save();
88 const filename = `images-to-pdf-${Date.now()}.pdf`;
89
90 return createDownloadResponse(pdfBytes, filename);

pdfProcessingArea.tsx1 match

@pro909Updated 1 week ago
63 );
64
65 case 'pdf-to-images':
66 return (
67 <div className="space-y-4">

pdfindex.html1 match

@pro909Updated 1 week ago
7 <script src="https://cdn.twind.style" crossorigin></script>
8 <script src="https://esm.town/v/std/catch"></script>
9 <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>📄</text></svg>">
10 <style>
11 .file-drop-zone {

pdftypes.ts6 matches

@pro909Updated 1 week ago
74 },
75 {
76 id: 'pdf-to-images',
77 name: 'PDF to Images',
78 description: 'Convert PDF pages to PNG or JPG images',
79 icon: '🖼️',
80 acceptedFiles: ['.pdf']
81 },
82 {
83 id: 'images-to-pdf',
84 name: 'Images to PDF',
85 description: 'Convert images to PDF format',
86 icon: '📸',
87 acceptedFiles: ['.png', '.jpg', '.jpeg'],

pdfREADME.md4 matches

@pro909Updated 1 week ago
7- **Merge PDFs**: Combine multiple PDF files into one
8- **Split PDF**: Extract specific pages or split into separate files
9- **PDF to Images**: Convert PDF pages to PNG/JPG images
10- **Images to PDF**: Convert images to PDF format
11- **Compress PDF**: Reduce PDF file size
12- **Add Watermark**: Add text or image watermarks
13- **Extract Text**: Extract text content from PDFs
14- **Rotate Pages**: Rotate PDF pages
50
511. Select a PDF operation from the tool menu
522. Upload your PDF file(s) or images
533. Configure operation settings
544. Process and download the result

pdfindex.ts2 matches

@pro562Updated 1 week ago
31app.route("/api/merge", mergeRoute);
32app.route("/api/split", splitRoute);
33app.route("/api/pdf-to-images", convertRoute);
34app.route("/api/images-to-pdf", convertRoute);
35app.route("/api/compress", compressRoute);
36app.route("/api/watermark", watermarkRoute);
placeholdji

placeholdji2 file matches

@jjgUpdated 2 days ago
Placeholder image service with emojis 🖼️

image_proxy

@oopsUpdated 1 week ago
Chrimage
Atiq
"Focal Lens with Atig Wazir" "Welcome to my photography journey! I'm Atiq Wazir, a passionate photographer capturing life's beauty one frame at a time. Explore my gallery for stunning images, behind-the-scenes stories, and tips & tricks to enhance your own