thumbnails in metadata generated incorrectly

Bug #1376500 reported by Bill Filler
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Canonical Devices Products
libhybris (Ubuntu)
Fix Released
Undecided
Jim Hodapp
qtubuntu-camera (Ubuntu)
Fix Released
Critical
Jim Hodapp
qtubuntu-camera (Ubuntu RTM)
In Progress
Undecided
Unassigned
thumbnailer (Ubuntu)
Fix Released
Critical
Jussi Pakkanen
thumbnailer (Ubuntu RTM)
In Progress
Undecided
Unassigned

Bug Description

build 76 rtm-proposed on krillin

Take a picture with camera-app
swipe to the right to display it
it looks squashed and like it's being displayed at the wrong aspect ratio
open the gallery-app and view the photo and it looks equally bad
share the photo to messaging-app, and the preview of the photo is black
copy the photo to your desktop and open there and the photo looks fine

these are all new regressions, not sure what layer it's in bug guessing a low layer as gallery, camera and messaging-app have not changed in this regard

Bill Filler (bfiller)
Changed in thumbnailer (Ubuntu):
importance: Undecided → Critical
Changed in camera-app:
importance: Undecided → Critical
assignee: nobody → Florian Boucault (fboucault)
Changed in thumbnailer (Ubuntu):
assignee: nobody → Jussi Pakkanen (jpakkane)
Changed in ubuntu-ui-toolkit:
importance: Undecided → Critical
assignee: nobody → Zoltan Balogh (bzoltan)
tags: added: rtm14
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in thumbnailer (Ubuntu):
status: New → Confirmed
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

FWIW I have seen black preview in messaging app back on saturday, so that's been there a few days/images.

Revision history for this message
Bill Filler (bfiller) wrote :

apparently qtubuntu-camera was updated to take photos at higher res and could be causing the issue:
see https://code.launchpad.net/~phablet-team/qtubuntu-camera/trunk rev 114

image size taken by camera is now 2448 x 4352 not sure what is was previously

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

The black square in messaging-app is actually this bug: https://bugs.launchpad.net/ubuntu/+source/messaging-app/+bug/1373462

This regression came well after the resolution increase so that isn't the only reason (although it may be part of it).

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

This started happening in image #75 which saw a thumbnailer landing - I installed #74 and upgraded only the thumbnailer binary packages and indeed it can be reproduced that way.

Bill Filler (bfiller)
Changed in ubuntu-ui-toolkit:
status: New → Invalid
Changed in camera-app:
status: New → Invalid
Changed in gallery-app:
status: New → Invalid
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

This is a bug in the camera app. It produces jpg files whose exif thumbnails have incorrect aspect ratio. Attached is a raw thumbnail extracted from a jpg produced with the camera.

Thumbnailer uses the embedded exif image if it exists (this is the change mentioned above) because scaling the full image is way too slow and resource hungry.

Changed in camera-app:
status: Invalid → Confirmed
Changed in thumbnailer (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Bill Filler (bfiller) wrote :

@jussi
Please, please, please:
next time you attempt to land changes to libthumbnailer, please thoroughly run the camera-app and gallery-app test plans!! This should have been caught during testing and the landings could have been coordinated rather than introducing this nasty regression.

camera-app uses qtubuntu-camera, so moving the bug to that project.

Changed in camera-app:
status: Confirmed → Invalid
Changed in qtubuntu-camera (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Bill Filler (bfiller) wrote :

The code in qtubuntu-camera or underlying hybris/Android code needs to be fixed to correctly set the aspect ratio on the exif thumbnail that is embedded in the jpeg.

no longer affects: gallery-app
no longer affects: camera-app
no longer affects: ubuntu-ui-toolkit
summary: - [regression] thumbnails and image previews displayed wrong
+ thumbnails in metadata generated incorrectly
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

There is a MR to temporarily disable exif thumbnails here:

https://code.launchpad.net/~jpakkane/thumbnailer/aspectworkaround/+merge/236925

tags: added: lt-blocker lt-category-visible lt-date-20141002 lt-prio-high
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

If you're doing the fix in thumbnailer the task can't be invalid.

Changed in thumbnailer (Ubuntu):
status: Invalid → In Progress
Revision history for this message
Jim Hodapp (jhodapp) wrote :
Revision history for this message
Florian Boucault (fboucault) wrote :

EXIF thumbnail generation is done by Android. There is a set of API to get/set the desired size of the thumbnail and also to retrieve the list of possible thumbnail sizes:

http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getSupportedJpegThumbnailSizes()

However there is no guarantee that a thumbnail size with the same aspect ratio as the pictures is going to always be available. That said, the solution would be to add logic in qtubuntu-camera to use the APIs above to select the appropriate thumbnail size. For that to happen these APIs need to be exposed in libhybris first.

Changed in thumbnailer (Ubuntu):
status: In Progress → Fix Released
Bill Filler (bfiller)
Changed in qtubuntu-camera (Ubuntu):
assignee: nobody → Jim Hodapp (jhodapp)
Olli Ries (ories)
tags: added: touch-2014-10-23
Jim Hodapp (jhodapp)
Changed in libhybris:
assignee: nobody → Jim Hodapp (jhodapp)
description: updated
Changed in qtubuntu-camera (Ubuntu):
status: New → In Progress
Revision history for this message
Olli Ries (ories) wrote :

this bug needs to be targeted after RTM, via ota

tags: added: ota-1
removed: touch-2014-10-23
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
affects: libhybris → ubuntu
Changed in libhybris (Ubuntu):
status: New → Confirmed
affects: ubuntu → libhybris (Ubuntu)
Changed in libhybris (Ubuntu):
status: New → Fix Released
Changed in qtubuntu-camera (Ubuntu):
status: In Progress → Fix Released
Changed in qtubuntu-camera (Ubuntu RTM):
status: New → In Progress
Changed in thumbnailer (Ubuntu RTM):
status: New → In Progress
Olli Ries (ories)
Changed in canonical-devices-system-image:
assignee: nobody → Canonical Devices Products (canonical-devices-products-team)
importance: Undecided → High
milestone: none → r1
status: New → Confirmed
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Marking fixed per comments

Changed in canonical-devices-system-image:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.