Skip to content

Mobile Image Management Optimization #844

@the2ne

Description

@the2ne

Objective:

To optimize image handling during HTML export to ensure proper image display and performance on mobile devices, without compromising quality or file size.

Functional Description:

Currently, the builder optimizes and exports HTML and images based on the desktop version. This optimization involves resizing and compressing images to reduce file weight. However, an issue arises when an image that is displayed in a smaller, multi-column layout on desktop is shown in full width on mobile. As a result, the image may appear pixelated or stretched on mobile devices due to insufficient resolution. The goal is to implement an optimized image export solution that considers the specific requirements of mobile layouts.

##To-Do List:

  • Analyze Current Image Optimization Process:
    Review the current logic for resizing and compressing images during export.
    Identify the points where desktop-specific optimizations are applied and where they fail to account for mobile use cases.

  • Determine Mobile-Specific Image Requirements:
    Identify common use cases where mobile images require higher resolutions compared to their desktop counterparts.
    Establish guidelines for image sizes and compression levels based on mobile layout requirements (e.g., full-width images).

  • Implement Responsive Image Handling:
    Introduce a mechanism to detect when images are used in different sizes across desktop and mobile versions.
    Generate and export multiple versions of the same image, optimized for both desktop and mobile contexts (e.g., using the srcset attribute or media queries).

  • Optimize Compression Logic:
    Ensure that images optimized for mobile maintain a balance between quality and file size.
    Consider using adaptive compression techniques that adjust based on the target display size.

  • Update Builder Export Functionality:
    Modify the HTML export process to include mobile-optimized images and ensure proper references in the exported code.

  • Documentation Update:
    Update user guides and technical documentation to explain how the new image optimization process works and any new settings available to users.

Metadata

Metadata

Assignees

Labels

🔧 EnhancementImprovement of an existing functionality

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions