Skip to content

Commit

Permalink
JPEGのヘッダーが壊れてしまう問題の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
4ster1sk committed Nov 12, 2024
1 parent 4eb70b6 commit dd1c7c7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ class NoteCreateNotifier extends _$NoteCreateNotifier {
if (mime == "image/jpeg") {
final origExif = decodeJpgExif(imageBytes);
final exif = ExifData();
exif.imageIfd["Orientation"] = 1;

if (origExif != null) {
final orientation = origExif.imageIfd["Orientation"];
Expand Down

0 comments on commit dd1c7c7

Please sign in to comment.