Introduction to Computer Science
Learn the fundamentals of programming and computational thinking in this comprehensive beginner course.
Automatic format conversion and size optimization
This image is automatically optimized by Astro. It's converted to modern formats (AVIF, WebP) when supported, resized to multiple dimensions for responsive display, and lazy-loaded to improve page performance. The original 1000x667 image is served in the most efficient format for each browser.
Different images for different screen sizes
<ResponsivePicture
src="/src/assets/images/university-campus-1.jpg"
alt="University main building"
widths={[400, 800, 1200, 1600]}
sizes="(max-width: 640px) 100vw, (max-width: 1024px) 90vw, 1200px"
formats={['avif', 'webp']}
aspectRatio="16/9"
/>
Course cards with optimized images
Learn the fundamentals of programming and computational thinking in this comprehensive beginner course.
Master data analysis techniques using Python, R, and modern visualization tools.
Build modern web applications with HTML, CSS, JavaScript, and popular frameworks.
Click any image to view in lightbox
24/7 Library Access
Modern Dining Facilities
Historic Architecture
Celebrating Success
See the benefits of modern image formats
Traditional JPEG format
File size: ~85KB
Modern WebP format
File size: ~45KB (47% smaller)
Cutting-edge AVIF format
File size: ~35KB (59% smaller)
Key optimization features implemented
Images load only when they're about to enter the viewport, reducing initial page load time.
Multiple image sizes generated automatically, serving the right size for each device.
Automatic conversion to AVIF and WebP formats for browsers that support them.
High-performance image processing with Sharp library for fast builds.
Images optimized during build, no runtime processing needed.
Above-the-fold images loaded eagerly, others lazy-loaded for optimal performance.