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?

3 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:

1 Like

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!

I tried this procedure and got an error at the end in the “php occ upgrade” step.

# runuser -u www-data --  php occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
UnexpectedValueException: The files of the app "viewer" were not correctly replaced before running the update
Update failed
Maintenance mode is kept active
Resetting log level

I was doing it for Nextcloud version 30.0.5.

The same Nextcloud version - 30.0.5 and the same issue:
UnexpectedValueException: The files of the app “viewer” were not correctly replaced before running the update
Update failed

Still no progress? Does anybody have a working solution or workaround for 30.0.5+ ?

The development process for Nextcloud is very confusing to me. Pulling in inofficial fixes like the one mentioned above is bothersome and usually leads to awful problems come the next official update, but the Nextcloud devs seem to take years to approve even simple pull requests. I am getting used to always working with a half-broken system.

1 Like

you must change appinfo/info.xml

from

<dependencies>
    <nextcloud min-version="29" max-version="29" />
</dependencies>

to

<dependencies>
    <nextcloud min-version="31" max-version="31" />
</dependencies>