Overview
Assets are static files like images, fonts, videos, and icons used in your projects. Tesslate Studio provides easy asset management and optimization.Upload Files
Drag-and-drop or browse to upload
Auto-Optimize
Automatic image optimization
CDN Delivery
Fast global asset delivery
Organized
Folder-based organization
Asset Types
- Images
- Fonts
- Icons
- Media
Photos and graphics
- PNG, JPG, JPEG
- WebP, SVG
- GIF
- AVIF
- Resize for web
- Compress automatically
- Generate responsive sizes
- Convert to modern formats
Uploading Assets
Images under 1MB are automatically optimized. Larger images may take a moment to process.
Using Assets in Code
Importing Images
Public Folder
For assets that don’t need import:Background Images
Asset Organization
Folder Structure
src/assets/
src/assets/
Processed by build
- Imported in components
- Bundled and optimized
- Hashed filenames
- Good for: Component images
public/
public/
Served directly
- Not processed
- Keep same filename
- Referenced by path
- Good for: Favicon, social images, PDFs
Image Optimization
Automatic Optimization
Tesslate automatically:- Compresses: Reduces file size
- Resizes: Creates responsive sizes
- Converts: Uses modern formats (WebP)
- Lazy loads: Defers offscreen images
Manual Optimization
For more control:Responsive Images
Generating Sizes
Ask AI agent to create responsive image code:Fonts
Adding Custom Fonts
Google Fonts
Easier approach - use Google Fonts:Icons
Using Lucide Icons
Built-in icon library:Custom SVG Icons
Asset Best Practices
Optimize Before Upload
Optimize Before Upload
- Compress images first
- Resize to needed dimensions
- Use appropriate formats
- Remove metadata
Use Modern Formats
Use Modern Formats
- WebP for photos
- SVG for logos/icons
- AVIF for best compression
- PNG only when needed
Use CDNs for Large Files
Use CDNs for Large Files
- Host videos on YouTube/Vimeo
- Use Cloudinary for images
- External hosting for large assets
- Faster load times
Name Files Clearly
Name Files Clearly
hero-background.jpgnotIMG_1234.jpgproduct-thumbnail.pngnotimage-2.png- Descriptive names help organization
- Good for SEO
Deleting Assets
Troubleshooting
Image Not Appearing
Image Not Appearing
Solutions:
- Check file path is correct
- Verify file uploaded successfully
- Check console for 404 errors
- Ensure correct import syntax
- Try absolute path (/images/file.jpg)
Slow Image Loading
Slow Image Loading
Solutions:
- Optimize/compress images
- Use WebP format
- Implement lazy loading
- Generate responsive sizes
- Use CDN for large files
Upload Failed
Upload Failed
Solutions:
- Check file size (max 10MB recommended)
- Verify file format is supported
- Check internet connection
- Try different browser
- Compress file and retry