Adding New Assets in Contentful

Aarya Panse

Blog / Adding New Assets in Contentful

Digital assets represent the bedrock of modern content, from images and videos to documents and marketing materials.

Contentful's asset management system gives you the might needed to store, organize, and deliver all your digital resources efficiently.

Asset Organization and Structure

Creating a well-organized asset library starts with a solid foundation. Think of your asset structure like organizing a physical library – you need clear sections, logical groupings, and easy-to-follow naming systems.

Folder Structure

Start by creating main folders based on content types:

  • Images
  • Videos
  • Documents
  • Marketing Materials
  • Brand Assets

Within each main folder, create subfolders based on specific uses or campaigns. For example:

  • Images/Blog-Posts
  • Images/Product-Photos
  • Marketing/Campaign-2024

Naming Conventions

Implement a consistent naming pattern:

  • Use lowercase letters
  • Separate words with hyphens
  • Include relevant dates or versions

Example: product-photo-blue-shirt-v2-2024-01

Tags and Categories

Create a tagging system that helps you quickly find assets:

  • Content type (photo, illustration, document)
  • Usage purpose (marketing, product, blog)
  • Campaign names
  • Seasons or time periods

Asset Optimization Techniques

Proper optimization is crucial for maintaining high performance while ensuring quality. Let's dive deep into each aspect of optimization.

Comprehensive Image Optimization

  1. Format Selection Guidelines
    • JPG/JPEG: Best for photographs, complex images with many colors
    • PNG: Best for graphics with transparency, screenshots, logos
    • WebP: Best for modern web applications, progressive websites
       
  2. Optimization Workflow
    • Pre-upload Preparation: Clean your images before uploading. Remove extra metadata like camera info and location data. Strip unnecessary color profiles. Set the correct image dimensions for your needs.
    • Compression Strategies: Choose the right compression for each image type. Use lossy compression for photos. Keep lossless compression for graphics and logos. Add progressive loading for better user experience.
    • Responsive Image Preparation: Create different sizes of each image. Make a small version for phones, medium for tablets, and large for desktops. Optimize each version for its target device.

Video Asset Optimization

  1. Video Format Options
    • MP4 (H.264): MP4 works on almost all devices and platforms. It offers a good balance between quality and file size. This format is perfect for websites and online sharing.
    • WebM: WebM provides better file compression than MP4. It works well with modern web browsers. You get higher quality videos at smaller file sizes.
       
  2. Video Optimization Steps
    • Pre-processing: Remove any extra footage you don't need. Set the right frame rate for smooth playback. Choose a resolution that matches your use case.
    • Compression Settings: Pick the right bitrate for your video quality needs. Use the best codec settings for your format. Find the sweet spot between quality and file size.
    • Delivery Optimization: Set up adaptive streaming to match viewer bandwidth. Create different quality versions of your video. Use proper caching to speed up delivery.
       
  3. Document Optimization
    • Compress PDFs
    • Remove unnecessary metadata
    • Use web-optimized settings
    • Convert to appropriate formats for web use

Working with Asset Variants

Asset variants help you maintain multiple versions of the same asset for different uses.

Creating Variants

  1. Create different sizes for responsive design
  2. Maintain multiple quality levels
  3. Generate format variations
  4. Store different crops or aspects

Automated Management

  1. Set up automatic variant generation
  2. Use naming conventions for variants
  3. Implement version control
  4. Track variant relationships

Asset Integration and Distribution

Effective distribution ensures your assets reach users quickly and efficiently.

CDN Setup

  1. Configure CDN settings properly
  2. Set appropriate cache times
  3. Use regional distribution
  4. Monitor performance

API Management

  1. Utilize API endpoints effectively
  2. Implement proper error handling
  3. Monitor API usage
  4. Set up backup systems

Best Practices and Guidelines

Follow these guidelines to maintain an efficient asset management system:

Workflow Best Practices

  1. Review assets regularly
  2. Archive unused assets
  3. Update metadata consistently
  4. Document your processes

Organization Tips

  1. Keep folder structures shallow
  2. Use consistent naming patterns
  3. Implement regular audits
  4. Maintain backup systems

Performance Optimization

  1. Monitor asset sizes
  2. Track loading times
  3. Optimize based on usage data
  4. Regular performance reviews

Scalability Considerations

  1. Plan for growth
  2. Monitor storage usage
  3. Review access patterns
  4. Adjust strategies as needed
Aarya Panse
by Aarya Panse
Content Marketer

End Slow Growth. Put your Success on Steroids