After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 795371 - Images rotate 90 deg after cropping
Images rotate 90 deg after cropping
Status: RESOLVED OBSOLETE
Product: shotwell
Classification: Other
Component: editing
0.28.x
Other Linux
: Normal normal
: ---
Assigned To: Shotwell Maintainers
Shotwell Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-04-19 08:05 UTC by lauterba
Modified: 2020-12-19 20:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
see under comment (1.50 MB, image/jpeg)
2018-04-19 18:13 UTC, lauterba
Details

Description lauterba 2018-04-19 08:05:10 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.
Comment 1 Jens Georg 2018-04-19 17:51:32 UTC
Can you please attach one sample image?
Comment 2 lauterba 2018-04-19 18:13:16 UTC
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
Comment 3 Jens Georg 2018-04-19 18:44:47 UTC
Can you please descibe all the steps you are doing including how you open shotwell.
Comment 4 Jens Georg 2018-04-19 18:49:13 UTC
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)
Comment 5 lauterba 2018-04-19 18:59:43 UTC
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.
Comment 6 Jens Georg 2018-04-20 17:34:06 UTC
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
Comment 7 lauterba 2018-04-20 18:18:23 UTC
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
Comment 8 Jens Georg 2018-04-25 07:41:00 UTC
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
Comment 9 Jens Georg 2020-12-19 20:11:03 UTC
Tracked as https://gitlab.gnome.org/GNOME/shotwell/-/issues/31