Bug 302278 - Message view does not respect JPEG orientation of inline images
Summary: Message view does not respect JPEG orientation of inline images
Status: RESOLVED UPSTREAM
Alias: None
Product: kmail2
Classification: Applications
Component: UI (show other bugs)
Version: 4.8.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-20 23:34 UTC by Alexander Potashev
Modified: 2012-12-28 19:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2012-06-20 23:34:18 UTC
Inlined JPEG image appears upside-down in the KMail's message view.

Reproducible: Didn't try

Steps to Reproduce:
1. Ask someone (probably yourself) to send you a photo with orientation info written in JPEG metadata.
2. Open the received message in the KMail's message view by single-clicking on it in the message list.
Actual Results:  
3. Look at the inlined image - it is possibly turned upside-down.

Expected Results:  
3. JPEG image in the correct orientation in the KMail's message view.

1. When saved in a file and opened in Gwenview, the photo can be seen in the correct orientation.

2. My e-mail message's source looks like this:

<...some headers...>


--Apple-Mail-1FB7AC89-4950-444D-A787-9FDC466AFBB6
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii




--Apple-Mail-1FB7AC89-4950-444D-A787-9FDC466AFBB6
Content-Disposition: inline;
	filename=photo.JPG
Content-Type: image/jpeg;
	name=photo.JPG
Content-Transfer-Encoding: base64

<...many letters and digits encoding the binary file...>

--Apple-Mail-1FB7AC89-4950-444D-A787-9FDC466AFBB6--
Comment 1 Laurent Montel 2012-06-25 06:51:34 UTC
Ok will look at it.
Comment 2 Laurent Montel 2012-07-16 07:46:32 UTC
I confirm it.
But it must be fixed in webkit not in kmail.
Webkit doesn't support it.
So we will wait until it support it
Comment 3 Steven Robbins 2012-11-25 14:21:28 UTC
What version of kmail was this fixed in?
Comment 4 Christoph Feck 2012-11-25 23:39:51 UTC
Steven, KMail uses WebKit to display images, and until WebKit supports orientation tags, KMail cannot display them correctly. You could report the issue to WebKit developers via http://www.webkit.org/quality/reporting.html
Comment 5 Steven Robbins 2012-11-26 01:07:17 UTC
OK, so the bug remains.  It's a bit confusing that this issue is marked as "resolved downstream". Could someone re-open this issue?
Comment 6 Steven Robbins 2012-12-25 07:24:12 UTC
(In reply to comment #4)
> Steven, KMail uses WebKit to display images, and until WebKit supports
> orientation tags, KMail cannot display them correctly. You could report the
> issue to WebKit developers via http://www.webkit.org/quality/reporting.html

I think that there are bugs already filed in WebKit.  Examples: 
 * https://bugs.webkit.org/show_bug.cgi?id=101207
 * https://bugs.webkit.org/buglist.cgi?quicksearch=exif+orientation

However, as a non-KDE person, I am lost in the minutia of "cairo" and "EFL port" so I can't tell whether this bug fix has been released by WebKit or not.  

More importantly for me is whether the fix has been released in kmail or not.  Having this bug marked as "resolved upstream" is misleading if it has not yet been released as part of kmail.

I'd appreciate some KDE help so as to update the Debian bug report http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=694171
Comment 7 Christoph Feck 2012-12-28 19:15:25 UTC
UPSTREAM is correct, because the bug is not in KMail, but in WebKit. See https://bugs.webkit.org/show_bug.cgi?id=95299

Additionally, WebKit is not released as part of KMail, but separately or together with Qt, depending on your distribution.