We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there,
The crop is working great for .jpg or .png but I'm not able to crop an animated GIF with this method :
Future<Uint8List?> cropImageDataWithNativeLibrary( ExtendedImageEditorState? state) async { final Rect? cropRect = state!.getCropRect(); final EditActionDetails? action = state.editAction; Uint8List? result; if (action != null) { final int rotateAngle = action.rotateAngle.toInt(); final bool flipHorizontal = action.flipY; final bool flipVertical = action.flipX; final Uint8List img = state.rawImageData; final ImageEditorOption option = ImageEditorOption(); if (action.needCrop && cropRect != null) { option.addOption(ClipOption.fromRect(cropRect)); } if (action.needFlip) { option.addOption( FlipOption(horizontal: flipHorizontal, vertical: flipVertical)); } if (action.hasRotateAngle) { option.addOption(RotateOption(rotateAngle)); } result = await ImageEditor.editImage( image: img, imageEditorOption: option, ); } return result; }
Is the GIF crop is supported ? I also tried editImageAndGetFile() but get no result.
How can this be done ? Thanks for help
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi there,
The crop is working great for .jpg or .png but I'm not able to crop an animated GIF with this method :
Is the GIF crop is supported ? I also tried editImageAndGetFile() but get no result.
How can this be done ? Thanks for help
The text was updated successfully, but these errors were encountered: