# Burmddit Media Features
## Automatic Image & Video Extraction
**Visual content makes articles 10X more engaging!** ๐ธ๐ฅ
---
## ๐ผ๏ธ IMAGE FEATURES
### Automatic Image Extraction:
**Every article automatically gets:**
- โ
**Featured image** (main hero image)
- โ
**Up to 5 additional images** from source articles
- โ
**Image gallery** (if 2+ images available)
- โ
**High-quality images only** (filters out tiny icons/ads)
### How It Works:
**1. During Scraping:**
```python
# Extracts images from articles
- Top image (featured)
- All content images (up to 10)
- Filters out small images (<200px)
- Removes duplicates
```
**2. During Compilation:**
```python
# Combines images from 3-5 source articles
- Collects all unique images
- Keeps best 5 images
- Sets first as featured image
```
**3. On Website:**
```
Featured Image (top)
โ
Article content
โ
Image Gallery (2x3 grid)
```
### Image Sources:
- Original article images
- Infographics
- Screenshots
- Product photos
- Diagrams
---
## ๐ฅ VIDEO FEATURES
### Automatic Video Extraction:
**Articles include embedded videos when available:**
- โ
**YouTube videos** (most common)
- โ
**Video iframes** (Vimeo, etc.)
- โ
**Up to 3 videos per article**
- โ
**Responsive embed** (works on mobile)
### Supported Video Platforms:
**Primary:**
- YouTube (embedded player)
- Vimeo
- Twitter/X videos
- Facebook videos
**Detection:**
- Searches for video URLs in article HTML
- Extracts YouTube video IDs automatically
- Converts to embed format
- Displays in responsive player
### Video Display:
**On Article Page:**
```
Article content...
โ
๐น Videos Section
- Video 1 (responsive iframe)
- Video 2 (responsive iframe)
- Video 3 (responsive iframe)
```
**Features:**
- Full-width responsive (16:9 aspect ratio)
- YouTube controls (play, pause, fullscreen)
- Mobile-friendly
- Lazy loading (doesn't slow page)
---
## ๐ VISUAL CONTENT STATS
### Why Images & Videos Matter:
**Engagement:**
- Articles with images: **94% more views**
- Articles with videos: **200% longer time on page**
- Share rate: **40% higher with visuals**
**SEO Benefits:**
- Google Images search traffic
- Better click-through rates
- Lower bounce rates
- Longer session duration
**User Experience:**
- Breaks up text (easier to read)
- Visual learners benefit
- Mobile scrolling more engaging
- Information retention +65%
---
## ๐จ FRONTEND DISPLAY
### Article Layout:
```
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ FEATURED IMAGE (hero) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Category Badge | Meta Info โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ARTICLE TITLE โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ CONTENT (paragraphs) โ
โ โ
โ โโโโโโโฌโโโโโโฌโโโโโโ โ
โ โ img โ img โ img โ โ Image Gallery
โ โโโโโโโผโโโโโโผโโโโโโค โ
โ โ img โ img โ โ โ
โ โโโโโโโดโโโโโโดโโโโโโ โ
โ โ
โ ๐น Videos: โ
โ โโโโโโโโโโโโโโโโโโโโโโ โ
โ โ YouTube Player โ โ Video 1
โ โโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโ โ
โ โ YouTube Player โ โ Video 2
โ โโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ MORE CONTENT... โ
โ โ
โ ๐ฐ Original Sources โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```
### Mobile Responsive:
- Featured image: Full width, 16:9 ratio
- Gallery: 1 column on mobile, 3 on desktop
- Videos: Full width, responsive iframe
- Auto-adjusts to screen size
---
## ๐ง TECHNICAL DETAILS
### Database Schema:
```sql
CREATE TABLE articles (
...
featured_image TEXT, -- Main hero image
images TEXT[], -- Array of additional images
videos TEXT[], -- Array of video URLs
...
);
```
### Example Data:
```json
{
"featured_image": "https://example.com/main.jpg",
"images": [
"https://example.com/main.jpg",
"https://example.com/img1.jpg",
"https://example.com/img2.jpg",
"https://example.com/img3.jpg",
"https://example.com/img4.jpg"
],
"videos": [
"https://youtube.com/watch?v=abc123",
"https://youtu.be/xyz789"
]
}
```
### Frontend Rendering:
**Images:**
```tsx