I have an issue with photos, that I took with my camera/smartphone. Whenever photo was taken vertically and I want to attach it in a note it changes its orientation to horizontal, even though in folder view it is shown vertically. It may sound like not a big deal, but some of my notes contain photos of my handwriten notes and it is hard to read them that way if i remember correctly I had the same issue with other markdown editors, so I believe it's not Joplin's fault, but maybe somebody here has an idea how can I fix it?
I just tried to reproduce the issue, but couldnāt. I took one picture vertically (as the OP), attached it and it shows correctly. Then I took another one horizontally, and yet again, it shows correctly in Joplin.
Maybe it is a combination of several factors. e.g. camera that took the pic, client OS, ā¦
Iāve been testing on git master on macOS 10.14.4 and I used a Google Pixel to take the picture.
Some cameras encode rotation in an image differently, the JPEG format allows for a horizontal flag instead of actually rotating an image. It appears thay Joplin is ignoring this flag. Iām not sure how easy the fix will be.
Is there anything that I can somehow change or do with the JPEG to make it shows a pic correctly in Joplin? If itās not a common issue I doubt there is a need for a change in Joplin. I took pics with my camera and my samsung galaxy, in both cases the same issue. Might it be my Windows 8 the problem?
Not really sure what the problem is right now, but this should be fixed nonetheless. I just hope there is a fix for it. I assume thereās a module responsible for reading exif data. Can you post your image here (the one in the link you sent)? I can try attaching it to a note on my system. Iām curious what happens.
Btw, hereās the pic I took. Just in case, you want to try it on your systemā¦
Itās coffeescript, so there should be a way to get the corresponding js. We could create a workaround function, which is used as long as Chromium hasnāt been fixedā¦
I donāt quite understand this code but I see calls to āMeteorā, which might mean itās using server-side stuff to fix the image? On Joplin, we could also read the Exif rotation tag and rotate the image base on it I guess.
I've made some testing. Apparently if I open the pic on macOS, rotate it there (I know it sounds silly) then copy it back to PC with Windows it shows corectly I don't really know what it means exactly, but I guess it's something with Windows
I don't know coffee script. Even javascript is still a mystery to me. I just thought it could help. If not, maybe rotating based on the exif tag should do the trick.
Iām encountering this same issue (specifically, when taking a photo directly through the android app it seems to randomly decide to have it rotated or not). Was there ever any progress made on this (or a github issue created?)?
I am a relatively new user to Joplin and markdown in general.
I'm encountering the same issue as the above users. I don't use images in most of my notes, so this is not much of a major issue for my use. I'm sharing the below details to shed light for others who might view this as a serious issue.
Photo: taken vertically with iPhone. Photo exported from Photos (on macOS) to a folder on network share. Photo dragged from network share to import into Joplin. Photo appears vertical in Photos (on macOS) and while viewing it in Finder on the network share. Photo appears horizontally in Joplin.
Did anyone find a solution for this issue? My vertical photos (from phone) are still changed to horizontal when attached to a Joplin note. Everywhere else the photos show correctly.
Joplin 2.12.15 (prod, linux)
Update: Nevermind. Turns out it only happens if I choose to resize the image when attaching it to the note. Using original full size the photo displays vertically. Would be nice if the resized photo didn't rotate though.