GNOME Bugzilla – Bug 795371
Images rotate 90 deg after cropping
Last modified: 2020-12-19 20:11:03 UTC
OS is latest build on Ubuntu 18.04 LTS 64-bit. Shotwell turns image 90 CC after crop. Setting pixel not possible in some cases. Problem appears to be change from width or height when saving image after cropping or resizing. Work around is to forget about Shotwell, save images to Win XP side of my laptop. Reboot into Win, use MS Office Picture Manager to get why I want, and the reboot into Ubuntu and get the correct images to upload to websites. Images were obtained from camera on my Samsung Galaxy S7 cell phone. Version of Shotwell with 16.04 LTS did not have this problem.
Can you please attach one sample image?
Created attachment 371141 [details] see under comment Attached image was vertical coming off camera. When I cropped it to give head/shoulders portrait with dpi at 400 (could not be changed), the attached image resulted. John
Can you please descibe all the steps you are doing including how you open shotwell.
I think this is just a display issue within shotwell after saving. The image itself is fine (check with e.g. eog or re-open with shotwell)
1. Move from camera to Dell Vostro 3500 laptop via gmail account on cell phone.2. Open shotwell from evolution e-mail or same to Pictures folder on home directory3. Crop to give head/shoulders view and save cropped image using Save As. Please note that same problem did not occur with version of shotwell that came with Ubuntu 16.04 LTS. Note to Jens's comment 4. Even if can get image with correct orientation, it uploads to a website I use as rotated 90 degrees counterclockwise. Moreover, some images won't rotate. Moreover, the only way to solve the rotation problem is to use MS Picture Manager from MS Office 2007.
This behavior is the same since ages, I don't know why it could have worked for you on 16.04 with 0.22 . I checked Picture Manager. What it does is rotate the pixel information. This would be basically be bug 716826
Thank you for your assistance. This bug is a serious problem if you need to upload you image to a website for inclusion in a web page. If your portrait is upright in Shotwell, you want it to stay upright in whatever web application you are using. I both recent cases, I was uploading images to websites. I am using Firefox 59.0.2, and there was an upgrade in Firefox about the same time I started using 18.04. So, what is the workaround? John
For the time being, you could use http://jpegclub.org/jpegtran/ to do the rotation manually. Same effect as using Windows. For your case, fixing bug 716826 should help
Tracked as https://gitlab.gnome.org/GNOME/shotwell/-/issues/31