Skip to content

Commit 0ce51d5

Browse files
fix: Major orientation fix during image transfer (#248)
Co-authored-by: Mario Behling <[email protected]>
1 parent 84346c8 commit 0ce51d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/image_library/services/image_operations_service.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,9 @@ class ImageOperationsService {
176176
}
177177
final decodedImage = img.decodeImage(imageData);
178178
if (decodedImage != null) {
179-
final rotatedImage = img.copyRotate(decodedImage, angle: -90);
180179
imageEpd.transfer(
181180
context,
182-
rotatedImage,
181+
decodedImage,
183182
);
184183
} else {
185184
_showErrorSnackBar(

lib/util/epd/epd.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ abstract class Epd extends DisplayDevice {
1717
{Waveform? waveform}) async {
1818
if (!context.mounted) return;
1919

20+
final rotatedImage = img.copyRotate(image, angle: 90);
2021
await TransferProgressDialog.show(
2122
context: context,
22-
finalImg: image,
23+
finalImg: rotatedImage,
2324
transferFunction: (img, onProgress, onTagDetected) async {
2425
if (!context.mounted) return;
2526
final currentEpdDevice = this;

0 commit comments

Comments
 (0)