ownCloud Docker | Pictures will not turned

Hi,
I have an ownCloud docker container behind traefik proxy.
The problem is that pictures in portrait perspective will be not turned in the gallery app. All the picutres does have the correct EXIF information and will be turned with e.g. IrfanView.

Does somebody know this issue and know what to do?

Thankes,
Dominik

Steps to reproduce

  1. Make some pictures with your mobile phone in landscape and portrait perpestive in jpg format (e.g. IMG_20190504_235329629.jpg).
  2. upload to ownCloud with activated Gallery app
  3. navigate in Gallery to the uploaded picture

Expected behaviour

The portrait will be turned, so I don’t have to turn my head.
Also landscape pictures with turned phone shall be turned automatically.

Actual behaviour

The portrait will not be turned, so I have to turn my head.
For inverted landscape pictures I have to turn my head.
:upside_down_face:

Server configuration

Operating system: Debian 9

Web server: Traefik proxy

Database: MariaDB 10

PHP version: Integrated into docker

ownCloud version: 10.1.1

Updated from an older ownCloud or fresh install: from docker 10.1

Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above): ?

Dockerfile (partially):

  owncloud-test:
    image: owncloud/server:10.1
    container_name: owncloud-test
    restart: always
    depends_on:
      - db
      - redis
    environment:
      - OWNCLOUD_DOMAIN=xxx
      - OWNCLOUD_DB_TYPE=mysql
      - OWNCLOUD_DB_NAME=xxx
      - OWNCLOUD_DB_USERNAME=xxx
      - OWNCLOUD_DB_PASSWORD=xxx
      - OWNCLOUD_DB_HOST=db
      - OWNCLOUD_ADMIN_USERNAME=admin
      - OWNCLOUD_ADMIN_PASSWORD=xxx
      - OWNCLOUD_MYSQL_UTF8MB4=true
      - OWNCLOUD_REDIS_ENABLED=true
      - OWNCLOUD_REDIS_HOST=redis
    volumes:
      - ./owncloud-test-data:/mnt/data
    labels:
      - "traefik.backend=owncloud-test"
      - "traefik.enable=true"
      - "traefik.frontend.rule=Host:xxx"
      - "traefik.port=8080"
      - "traefik.docker.network=traefik_proxy"
      - "traefik.frontend.headers.customResponseHeaders=Strict-Transport-Security:max-age=15552000"
    networks:
      - traefik_proxy
      - default

Additional Info: I have checked the PHP-config via phpinfo(). Exif support is enabled.

EXIF Support 
enabled 
EXIF Version 
7.2.15-0ubuntu0.18.04.2 
Supported EXIF Version 
0220 
Supported filetypes 
JPEG, TIFF 
Multibyte decoding support using mbstring 
enabled 

The content of config/config.php:

{
    "system": {
        "apps_paths": [
            {
                "path": "\/var\/www\/owncloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/owncloud\/custom",
                "url": "\/custom",
                "writable": true
            }
        ],
        "trusted_domains": [
            "localhost"
        ],
        "datadirectory": "\/mnt\/data\/files",
        "dbtype": "mysql",
        "dbhost": "db",
        "dbname": "owncloudtest",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "log_type": "owncloud",
        "supportedDatabases": [
            "sqlite",
            "mysql",
            "pgsql"
        ],
        "upgrade.disable-web": true,
        "default_language": "en",
        "overwrite.cli.url": "http:\/\/xxx.de\/",
        "htaccess.RewriteBase": "\/",
        "logfile": "\/mnt\/data\/files\/owncloud.log",
        "loglevel": 2,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mysql.utf8mb4": true,
        "filelocking.enabled": true,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "redis",
            "port": "6379"
        },
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "version": "10.1.1.1",
        "logtimezone": "UTC",
        "installed": true,
        "instanceid": "oc627z8ichyt",
        "maintenance": false
    }
}

List of activated apps:

Enabled:
  - calendar: 1.6.2
  - comments: 0.3.0
  - configreport: 0.1.2
  - contacts: 1.5.5
  - dav: 0.4.0
  - duo: 2.5.2
  - federatedfilesharing: 0.3.1
  - federation: 0.1.0
  - files: 1.5.2
  - files_external: 0.7.1
  - files_sharing: 0.11.0
  - files_trashbin: 0.9.1
  - files_versions: 1.3.0
  - files_videoplayer: 0.9.9
  - firstrunwizard: 1.1.1
  - gallery: 16.1.1
  - market: 0.4.0
  - notifications: 0.4.1
  - oauth2: 0.4.0
  - provisioning_api: 0.5.0
  - systemtags: 0.3.0
  - twofactor_totp: 0.5.3
  - updatenotification: 0.2.1
Disabled:
  - encryption
  - external
  - twofactor_backup_codes
  - user_external
  - user_ldap

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Firefox 66.0.5

Operating system: Windows 10

Logs

Web server error log

empty

Hey,

in the past i had found the following in the ChangeLog of the upcoming ownCloud 10.2.0 release:

Images are again properly rotated now based on EXIF rotation - #34356

which was announced in a release candidate here:

1 Like

Hey!

Thanks for your reply. I’ve just tested with

    image: owncloud/server:10.2.0-rc2

and it works. Pictures will be rotated. :grinning:

1 Like