Nextcloud 14 and HEIC view and preview

Hello,

First, sorry for my English. This is not my language but I’ll try my best.

I’m running a Nextcloud 14.0.3 server in a headless Debian computer and I sync my iPhone with the server using Nextcloud iOS app, so all my pictures are in my cloud. My pictures are in HEIC format and I’m browsing with Firefox under Windows 10.

I’m trying to configure HEIC pictures preview (and, if it is possible, view in gallery instead just download), but after two days, I have not succeeded. According to Github repo, I understand that it should work.

My last attempt was add to my config.php “‘OC\Preview\HEIC’”, but it still not working.

Nextcloud version (eg, 12.0.2): 14.0.3 stable
Operating system and version (eg, Ubuntu 17.04): up to date Debian testing
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.37-1
PHP version (eg, 7.1): 7.2

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): No

Steps to replicate it:

  1. Upload HEIC picture.
  2. Browse from Files o Gallery to HEIC picture location.

Expected: HEIC picture thumbnail and preview in JPEG/HEIC.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'xxxxxxxxx',
  'passwordsalt' => 'xxxxxxxxx',
  'secret' => 'xxxxxxxxx',
  'trusted_domains' =>
  array (
    0 => 'xxxxxxxxx.net',
  ),
  'datadirectory' => '/xxxxxxxxx/xxxxxxxxx',
  'overwrite.cli.url' => 'https://xxxxxxxxx.net/',
  'dbtype' => 'mysql',
  'version' => '14.0.3.0',
  'installed' => true,
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'dbname' => 'xxxxxxxxx',
  'dbhost' => 'xxxxxxxxx',
  'dbuser' => 'xxxxxxxxx',
  'dbpassword' => 'xxxxxxxxx',
  'mysql.utf8mb4' => true,
  'mail_from_address' => 'xxxxxxxxx',
  'mail_domain' => 'xxxxxxxxx.net',
  'enabledPreviewProviders' => array(
    'OC\Preview\PNG',
    'OC\Preview\JPEG',
    'OC\Preview\GIF',
    'OC\Preview\HEIC',
    'OC\Preview\BMP',
    'OC\Preview\XBitmap',
    'OC\Preview\MP3',
    'OC\Preview\TXT',
    'OC\Preview\MarkDown'
),
);

Thank you very much in advance for your time.

Please search before posting.

That said:


Support for Special HEIC/HEIF will be added to NC16.

1 Like