Cloud Image Resizing With Gradient Switching for Stable Display
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The display effect of processed images is poor when the processing result from a cloud server is displayed due to differences in image size between the cloud server's processing and the terminal device's rendering canvas, leading to stretching or jumping of the image.
Innovation Solution
Add preset pixels to the image before processing to adjust its size to match the cloud server's requirements, crop the processed image to fit the terminal's rendering canvas, and render a gradient switching effect to optimize the display.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Manufacturing precision
If the image size is adjusted to match the cloud server's processing requirements, then the image processing can be performed correctly, but the image may stretch or jump when displayed on the terminal device
Solution Approach 1:
The solution segments the image processing workflow into distinct size adjustment phases: pre-processing size adjustment before cloud server processing, and post-processing size adjustment after receiving results. This segmentation allows each phase to handle size requirements independently, resolving the contradiction between processing accuracy and display shape.
Solution Approach 2:
The patent applies preliminary action by adjusting the image size to match cloud server requirements before processing occurs. This pre-adjustment ensures the processing algorithm works correctly while the system plans for subsequent size re-adjustment to match display canvas dimensions, preventing display distortion.
2Shape
If the image size is adjusted multiple times (before and after processing), then the display effect is improved, but the processing complexity increases
Solution Approach 1:
The size adjustment module is designed as a universal component that handles both pre-processing and post-processing size adjustments. This multi-functional approach consolidates what could be separate complex operations into a single reusable module, reducing overall system complexity while maintaining the benefit of multiple size adjustments.
Solution Approach 2:
The patent uses parameter changes by systematically modifying image dimension parameters at different stages. The first size adjustment changes parameters to match cloud server requirements, and the second adjustment changes them to match display canvas dimensions. This structured parameter management simplifies the complexity of multiple adjustments.
3Productivity
If the image is processed at a different size than the display canvas, then the cloud server processing can be performed, but the display effect deteriorates due to stretching or jumping
Solution Approach 1:
The solution implements dynamics by making the image size adaptable at different stages of the workflow. The image size is dynamically adjusted to match cloud server requirements during processing, then dynamically re-adjusted to match display canvas dimensions before rendering. This dynamic adaptation resolves the contradiction between processing efficiency and display shape.
Data Source
Figure 1
Figure 2~3
Figure 4~5
AI summary
The embodiments of the present disclosure provide an image processing method and apparatus, device, computer-readable storage medium, and product, and the method includes: acquiring a first image with a first preset size in response to an image processing operation triggered by a user; adjusting a size of the first image to a second preset size matched with a preset image processing algorithm to obtain a second image; performing the image processing operation on the second image based on the image processing algorithm to obtain a third image; adjusting a size of the third image to the first preset size to obtain a target image; and rendering a gradient switching effect of switching from the first image to the target image on a rendering canvas with the first preset size.