mirror of
https://github.com/status-im/status-go.git
synced 2025-01-10 06:36:32 +00:00
7ed92531c2
- Addressed the issue where remote image URLs failed to be processed due to local file handling restrictions. - Introduced `FetchAndStoreRemoteImage` to download and save remote images to a temporary file, enabling compatibility with existing processing functions. - Split the main image handling logic into smaller functions (`OpenAndDecodeImage`, `AdjustImage`) for better modularity and maintainability. - Updated `OpenAndAdjustImage` to use these new functions, ensuring a streamlined flow for both local and remote images. - Added cleanup steps for temporary files to prevent resource leaks. resolves: #15691