Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Linux and Windows platform #284

Open
iamkartiknayak opened this issue Feb 5, 2024 · 4 comments
Open

Support for Linux and Windows platform #284

iamkartiknayak opened this issue Feb 5, 2024 · 4 comments

Comments

@iamkartiknayak
Copy link

Platforms

Windows, Linux

Description

Two major plaforms are missing the implementation of compressing image via Uint8List or actual file. Image.memory() isn't efficient in dealing with larger number of Uint8List data and has a larger memory footprint on the app as we add more Uint8List data in the runtime.

Why

There are many windows flutter dev facing the same issue when dealing with image data efficiently, Adding support to Windows and Linux would complete the impl for all major OS helping the application serve a wider audience.

@dannycortesv
Copy link

Will be awesome to have this feature

@hwkim1127
Copy link

hwkim1127 commented Apr 25, 2024

actually so I created simple_native_image_compress so that you just send the path string and gets image as Uint8List in return and it also supports both Windows and Linux.

@sammanart
Copy link

actually so I created simple_native_image_compress so that you just send the path string and gets image as Uint8List in return and it also supports both Windows and Linux.

@hwkim1127 I tried to use your packages but got this. Can you help me how I can fix this

[ ] SEVERE : Cargokit BuildTool failed with error : [C:\work\flutter\androp\build\windows\x64\plugins\simple_native_image_compress\simple_native_image_compress_cargokit.vcxproj] [ ] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'C:\work\flutter\androp\build\windows\x64\CMakeFiles\d2cadfdd70b453df3c30d8e1388e44e4\native_image_compress.dll.rule;C:\work\flutter\androp\build\windows\x64\CMakeFiles\e6a54e3983 6c32c0b6f5f3d9c57e0960\simple_native_image_compress_cargokit.rule' exited with code -1. [C:\work\flutter\androp\build\windows\x64\plugins\simple_native_image_compress\simple_native_image_compress_cargokit.vcxproj]

@hwkim1127
Copy link

actually so I created simple_native_image_compress so that you just send the path string and gets image as Uint8List in return and it also supports both Windows and Linux.

@hwkim1127 I tried to use your packages but got this. Can you help me how I can fix this

[ ] SEVERE : Cargokit BuildTool failed with error : [C:\work\flutter\androp\build\windows\x64\plugins\simple_native_image_compress\simple_native_image_compress_cargokit.vcxproj] [ ] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'C:\work\flutter\androp\build\windows\x64\CMakeFiles\d2cadfdd70b453df3c30d8e1388e44e4\native_image_compress.dll.rule;C:\work\flutter\androp\build\windows\x64\CMakeFiles\e6a54e3983 6c32c0b6f5f3d9c57e0960\simple_native_image_compress_cargokit.rule' exited with code -1. [C:\work\flutter\androp\build\windows\x64\plugins\simple_native_image_compress\simple_native_image_compress_cargokit.vcxproj]

did you install rust? I actually updated the README so that you can setup the requirements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants