Thumbnails work for RAW images, but clicking starts a download instead of expanding the preview?

I have a lot of raw images in my cloud (e.g. .arw and .rw2). imagemagick clearly generates previews for them, since I can see the thumbnails in the Nextcloud web interface. However, when I click a jpeg or similar file, a larger version of the preview opens. When I click an arw file, it starts a download instead.

How can I make clicking an arw file open the big preview instead of downloading it?

2 Likes

Have the same problem since Nextcloud 28. Did you find any solution?

Not so far. I am surprised that no one else seems to want this feature.

Found a solution:
It is a bit complicated but worked for me.
First of all, make a backup of your Nextcloud installation in case something goes wrong.

Go to the app folder of your Nextcloud installation, for example:

cd /var/www/html/apps/ 

Then rename the app called “viewer”. In case something goes wrong in the further process, just rename it back and everything should be running again:

mv viewer .backupviewer

Download the latest git repository for your version:
Note: In this example, I am using server version Nextcloud 29.0.1, so everywhere that “v29.0.1” appears, replace it with your current running Nextcloud server version.

git clone -b v29.0.1 https://github.com/nextcloud/viewer.git

Then get the pull request fix from GitHub:

git fetch origin pull/2099/head:v29.0.1
git checkout v29.0.1

go inside the viewer app

cd viewer

Install npm and Compile app

apt update
apt install npm
npm ci
npm run build

Go to your Nextcloud server main folder, then run the Nextcloud server upgrade:

cd /var/www/html
php occ upgrade

Now it should run test to open Raw Foto.

Links:

Why is this fixed not merged to the main branch? How can I influence this decision? It is annoying to do these steps after each docker image update plus I have now an error message, that some files failed the integrity check

I agree, this issue is incredibly annoying for me considering the main use of my Nextcloud installation if for image backup for a photography business.

I found the pull request listed in the steps above as well as an issue that seems to be discussing some sort of re-write of the viewer app as a whole.

Lets hope it happens sooner rather than later!