# 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 {article.title_burmese} {/* Gallery */}
{article.images.slice(1).map(img => ( ... ))}
``` **Videos:** ```tsx {article.videos.map(video => (