flutter_image_cropper
flutter_image_cropper copied to clipboard
Support for Transparent images
My image is transparent black logo and crop tool is adding black colour as default in background and after cropping, I see complete black screen and I would be very happy if you can add support for transparent images.
The plugin only works as a bridge between Dart codes and native codes of the native library (framework). So, if the native library doesn't support a feature, I can do nothing to bring it to the plugin. You may as well visit the native library repositories (TOCropViewController and uCrop) and try to request this feature, after it is available on the native sides, I can update the Dart codes to make it available on the plugin.
Thanks @hnvn for such a quick response. I have requested the support for transparent images in native libraries and will let you know once they have added it.
HI @hnvn I just got an update from TOCropViewController and they say that they are supporting transparent images.
What about Android?
Regarding android, they are yet to respond and waiting for their response.
Thank you.
@hnvn In Android, the developers of UCrop plugin say the following
May be you is not calling
UCrop.Options configInstance = new UCrop.Options(); configInstance.setCompressionFormat(Bitmap.CompressFormat.PNG) ... before start UCropActivity. You can do this building a UCrop.Options instances and pass it on
UCrop.of(from, cropTo).withOptions(configInstance)
any update ?
Any update on this one? problem still occurs