Shotwell thumbnails not shown for raw photos in results

Bug #1069225 reported by Andrew McCarthy on 2012-10-20
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Photos Lens
Medium
Unassigned
unity-lens-photos (Ubuntu)
Undecided
Unassigned

Bug Description

On 64-bit 12.10 (quantal) with unity-lens-photos 0.8-0ubuntu1.

For search results that include raw photos (.CRW files in my case) the thumbnails are blank. The update_search_results() method looks for files in the thumbnails folder that have the same extension as the source file. However, at least for my files, Shotwell's thumbnails are .jpg and so aren't seen.

A basic patch to fix my situation, attached, simply also checks for .jpg thumbnails (so it checks thumb0000000000001234.jpg after failing to find thumb0000000000001234.crw). A more thorough fix might be to check for thumb0000000000001234.* perhaps?

Related branches

The attachment "Quick fix for raw thumbnails that also checks for thumbnails ending with .jpg" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
David Callé (davidc3) wrote :

CR2 and NEF files are correctly handled by the Dash on my end, I'm wondering why CRW are failing...

This bug would be ideally fixed on Dash side, but I'll add your fix here in the meantime.
Thanks!

Changed in unity-lens-photos:
status: New → Triaged

Yes, fixing CRW would be best, as I also get a blank preview image (which this patch can't help). I'll see if I can figure out what's going on. It may be that my CRW files have no embedded JPG preview. Thanks.

David Callé (davidc3) on 2012-10-22
Changed in unity-lens-photos:
status: Triaged → In Progress
importance: Undecided → Medium
David Callé (davidc3) on 2012-10-22
Changed in unity-lens-photos:
status: In Progress → Fix Committed
David Callé (davidc3) wrote :

For raw file previews, the Preview thumbnail generator used by the Dash doesn't handle all types of raw files, so the lens is using the "*_shotwell.jpg" file Shotwell generates in the same folder as the raw file. A file it generates only when the raw is double clicked in Shotwell.

One way to fix it would be to use the largest available thumbnail (thumbs360/) in the Preview when the file is not supported, which is obviously quite hard to check, and could also introduce the need to maintain a hardcoded list of raw file extensions.
Ideally, we could ask the Dash devs for a Unity method to check if an extension is supported in the Dash (results and previews).

I will file a Unity bug for this and raise the subject next week at UDS.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers