pdf
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
index.ts
https://ujhuhguyg--bd02edec380911f099b59e149126039e.web.val.run
A modern, dark-themed web tool that converts images to PDF format with stunning 3D effects and animations.
- Dark Theme: Beautiful dark gradient background with glass morphism effects
- 3D Effects: Cards, buttons, and elements with realistic 3D transformations
- Animations: Floating particles, shimmer effects, and smooth transitions
- Multi-upload: Upload multiple image files (JPEG, PNG, GIF, WebP)
- File Validation: Client and server-side validation with 10MB file size limit
- Drag & Drop: Intuitive drag and drop interface with visual feedback
- Smart Conversion: Convert images to a single PDF document with automatic scaling
- Progress Tracking: Animated progress bar with gradient effects
- Error Handling: Comprehensive error messages and robust processing
- Responsive Design: Works perfectly on desktop and mobile devices
- Glass Morphism: Translucent cards with backdrop blur effects
- Gradient Backgrounds: Multi-color gradients throughout the interface
- 3D Transformations: Perspective-based card rotations and hover effects
- Floating Elements: Subtle animations and particle effects
- Glow Effects: Soft glowing elements for enhanced visual appeal
- Robust Base64 Conversion: Fixed chunked processing for large files
- File Size Limits: 10MB per file limit to prevent memory issues
- Enhanced Error Handling: Detailed error messages and validation
- Client-side Validation: Early validation to catch issues before upload
- Memory Optimization: Efficient processing of large image files
- Visit the web interface
- Click "β¨ Choose Images" or drag files to the upload zone
- Files are automatically validated (max 10MB each)
- Preview your selected images in the elegant file list
- Click "π Convert to PDF" to process the images
- Watch the animated progress bar and download your PDF
GET /
- Web interface with dark theme and 3D effectsPOST /convert
- Convert images to PDF (accepts multipart/form-data with image files)
- Built with Hono framework
- Uses jsPDF for PDF generation
- Robust base64 conversion with chunked processing
- File size validation (10MB limit per file)
- Custom CSS with 3D transforms and animations
- Glass morphism and backdrop filters
- Client-side processing for privacy
- Comprehensive error handling
- Responsive design with TailwindCSS