SWF File Optimization for Image Viewer Initialization
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The initialization of Adobe Flash-based image viewers is slow due to multiple data transmissions between the client and server, as image information is not cached, leading to repeated server access for each request, which increases the number of computations and data transmission size.
Innovation Solution
An optimizer module identifies and modifies SWF files by embedding required components, marking them as cacheable, and transmitting them to the client, reducing the number of data transmissions and computations by caching and removing nonessential components, and transferring computations to the server.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If image information is not cached and origin server access is required for each request, then the image viewer can access the latest image data, but the initialization time increases due to multiple data transmissions
Solution Approach 1:
The patent applies preliminary action by pre-fetching image information and caching it on the CDN before it is actually needed. The system proactively retrieves and stores image data, skin data, and configuration files in advance, so that when the image viewer needs to initialize, the data is already available locally rather than requiring origin server access.
Solution Approach 2:
The patent introduces a CDN as an intermediary between the origin server and the image viewer. The CDN acts as a mediator that caches image information and serves it to clients, reducing the need for direct origin server access. This intermediary layer maintains data freshness while reducing initialization time by serving cached content.
2Adaptability or versatility
If multiple components are transmitted separately during initialization, then each component can be delivered independently, but the total data transmission size and number of transmissions increases
Solution Approach 1:
The patent applies merging by combining multiple separate component transmissions into a single bundled transmission. Instead of delivering skin data, image information, configuration files, and other components separately through multiple HTTP requests, the system bundles them together into one transmission unit that is cached and delivered as a package, reducing the total number of transmissions and overall data transfer overhead.
Solution Approach 2:
The patent creates a universal bundled transmission mechanism that can carry multiple different types of components (image data, skin files, configuration settings, etc.) in a single transmission. This multi-functional approach allows the same transmission infrastructure to handle diverse content types without requiring separate optimized pathways for each component type.
3Ease of operation
If the SWF file includes all necessary components, then the image viewer can function complete, but the file size increases and transmission time increases
Solution Approach 1:
The patent applies the nested doll principle by creating a hierarchical structure where the main SWF file contains references to nested component files (skin data, image information, configuration files). Rather than embedding all components directly in the main SWF file, the system creates a nested structure where the primary file is compact and contains pathways to nested sub-components that are loaded separately but organized in a unified hierarchical manner.
Data Source
AI summary
The present disclosure includes systems and methods relating to accelerating initialization of image viewers. In general, one aspect of the subject matter described in this specification can be embodied in a method that includes receiving a request to display an image, identifying a data component involved with displaying the image, modifying an existing electronic binary vector graphics file to include the data component, and transmitting the modified file.


