nextcloud / nextcloud/viewer

RAW images, specifically DNG, aren’t loading previews, just downloading

Open
#2,960 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug
Dominant language
JavaScript
Stars
119
Forks
72
Avg merge
18h 42m
Merged PRs (30d)
24

Description

Describe the bug
Since Viewer updated to 4.0.0, .dng images aren’t able to be loaded as previews, just downloaded. They also don’t appear in the Photos app.

To Reproduce
Steps to reproduce the behavior:

  1. Install camerarawpreviews, ensure .dng previews are generated and visible (they are in this case)
  2. Click on Files app
    1. Click on the desired subfolder
  3. Click on the desired .dng image
  4. .dng pops up as a download, rather than loading a preview like with .jpg, etc

Expected behavior
RAW images used to load previews as a pop up image like .jpg. This no longer occurs

Screenshots
N/A, logs:

.jpg:
{"reqId":"4yBKAL1JlOuZbyjxtDUC","level":0,"time":"2025-09-02T19:42:33+00:00","remoteAddr":"X.X.X.X","user":"YYY","app":"no app in context","method":"GET","url":"/core/preview?fileId=40123887&x=2420&y=1454&a=true&etag=8daef698d10187e994b084d2ae70a2df","message":"Requesting preview for /YYY/files/Photos/2025/08/08,03,2025,10;14;10;AM,1345 1.jpg with width=2420, height=1454, crop=false, mode=fill, mimeType=null","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15","version":"31.0.8.1","data":[]}

.dng:

{"reqId":"ChenTyWO6jhbeE9FiruS","level":0,"time":"2025-09-02T19:42:37+00:00","remoteAddr":"X.X.X.X","user":"YYY","app":"workflowengine","method":"GET","url":"/remote.php/dav/files/YYY/Photos/2025/08/08%2C03%2C2025%2C15%3B40%3B06%3BPM%2C1347.dng","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15","version":"31.0.8.1","data":{"app":"workflowengine","level":"0"}}

.heic (since these are disabled by default, just to confirm my config works):

{"reqId":"VRyPMygzLp13z4aBsfaK","level":0,"time":"2025-09-02T19:57:09+00:00","remoteAddr":"X.X.X.X","user":"YYY","app":"no app in context","method":"GET","url":"/core/preview?fileId=40126394&x=2420&y=1454&a=true&etag=7241996c8e28194e9cf1eff7990aaae2","message":"Requesting preview for /YYY/files/Photos/2025/08/08,16,2025,14;08;29;PM,1213.heic with width=2420, height=1454, crop=false, mode=fill, mimeType=null","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15","version":"31.0.8.1","data":[]}

Config.php:

  'enable_previews' => true,
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\Movie',
    1 => 'OC\\Preview\\PNG',
    2 => 'OC\\Preview\\JPEG',
    3 => 'OC\\Preview\\GIF',
    4 => 'OC\\Preview\\BMP',
    5 => 'OC\\Preview\\XBitmap',
    6 => 'OC\\Preview\\MP3',
    7 => 'OC\\Preview\\MP4',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
    10 => 'OC\\Preview\\PDF',
    11 => 'OC\\Preview\\HEIC',
    12 => 'OC\\Preview\\HEIF',
    13 => 'OC\\Preview\\DNG',
    14 => 'OC\\Preview\\MOV',
    15 => 'OC\\Preview\\Image',
  ),

Desktop (please complete the following information):

  • OS: iOS, Mac OS and Windows 10
  • Browser Safari, Firefox and Edge
  • Version Safari 18.6, Firefox, 142.01 Edge 139.03405.125

Smartphone (please complete the following information):

  • Device: iPhone 14 Pro Max, iPad Pro M4
  • OS: iOS 18.6.2
  • Browser Safari
  • Version

Firefox

No Log entry, just downloads

Additional context
I worked through this with ariselseng to eliminate camerarawpreveiws as the issue here:
https://github.com/ariselseng/camerarawpreviews/issues/115

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by comparing the Viewer’s /core/preview requests for JPG and HEIC with the DNG request that downloads through /remote.php/dav, then inspect how the configured OC\Preview\DNG provider is handled. Done means DNG files open as image previews in Files and appear in Photos instead of downloading.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.