Skip to content

Commit

Permalink
trigger workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-hartl committed Jan 11, 2023
1 parent e7c4f19 commit a9a8046
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/src/controller/camera_controller_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,14 @@ class CameraControllerImpl implements CameraController {
final cameraImage =
CameraImage.fromJson(Map<String, dynamic>.from(response['image']));
final imageFile = File(
join(temporaryDirPath, '${clock.now().millisecondsSinceEpoch}.jpg'));
join(
temporaryDirPath,
'${clock.now().millisecondsSinceEpoch}.jpg',
),
);
await imageFile.create(recursive: true);
final imageBuilder = ImageBuilder.fromCameraImage(cameraImage)
.rotate(90)
.flipHorizontally();
final imageBuilder =
ImageBuilder.fromCameraImage(cameraImage).rotate(90).flipHorizontally();
final bytes = imageBuilder.asJpg();
final writtenFile = (await imageFile.writeAsBytes(bytes));
final path = writtenFile.path;
Expand Down

0 comments on commit a9a8046

Please sign in to comment.