ariselseng / camerarawpreviews

Camera Raw Previews app for Nextcloud
GNU Affero General Public License v3.0
53 stars 11 forks source link

Wrong JPEG library version: library is 80, caller expects 62 #73

Closed facorazza closed 3 years ago

facorazza commented 3 years ago

If I try to generate previews I get this error.

I'm on Debian 10. Online I saw people uninstalling and reinstalling libjpeg 6 and 8 but I'm on Debian 10 and these are the packages available:

/# apt search libjpeg
Sorting... Done
Full Text Search... Done
libjpeg-dev/stable 1:1.5.2-2+deb10u1 all
  Development files for the JPEG library [dummy package]

libjpeg-turbo-progs/stable 1:1.5.2-2+deb10u1 amd64
  Programs for manipulating JPEG files

libjpeg62-turbo/stable,now 1:1.5.2-2+deb10u1 amd64 [installed]
  libjpeg-turbo JPEG runtime library

libjpeg62-turbo-dev/stable 1:1.5.2-2+deb10u1 amd64
  Development files for the libjpeg-turbo JPEG library

I tried to install libjpeg-dev to no avail.

Is it an issue with imagemagick?

facorazza commented 3 years ago

I tried to remove all libjpeg libraries: apt purge -y libjpeg-dev libjpeg62-turbo && apt autoremove -y

then I tried to reinstall libjpeg62 again: apt install -y libjpeg62-turbo

and tried to generate the previews. Then I got:

/# ncc preview:generate-all --path="/my/files/path"
PHP module GD not installed.
Please ask your server administrator to install the module.

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /data/nextcloud/lib/private/Console/Application.php:168
Stack trace:
#0 /data/nextcloud/console.php(99): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /data/nextcloud/occ(11): require_once('/data/nextcloud...')

So I installed GD: apt install php7.3-gd

Now I don't get the error anymore and the NEF previews work fine.