Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pictures are shown as thumbnails not in full resolution #450

Closed
scroom opened this issue Oct 25, 2015 · 6 comments
Closed

Pictures are shown as thumbnails not in full resolution #450

scroom opened this issue Oct 25, 2015 · 6 comments
Labels

Comments

@scroom
Copy link

scroom commented Oct 25, 2015

Steps to reproduce

  1. Open the gallery app
  2. click on one of the images
  3. the image is shown as thumbnail and not in full resolution

Expected behaviour

The picture should be shown in full resolution

Actual behaviour

as decribed above

Server configuration

Operating system: Ubuntu 14.04 LTS

Web server: Apache

Database: MySQL

PHP version: PHP 5.5.9-1ubuntu4.13 (cli)

ownCloud version: 8.2

Updated from an older ownCloud or fresh install: fresh install

List of activated apps:

Enabled:
  - calendar: 0.8.0
  - contacts: 0.5.0.0
  - documents: 0.10.2
  - files: 1.2.0
  - files_locking: 
  - files_mv: 0.8.1a
  - files_pdfviewer: 0.7
  - files_sharing: 0.7.0
  - files_texteditor: 2.0
  - files_trashbin: 0.7.0
  - files_versions: 1.1.0
  - files_videoviewer: 0.1.3
  - firstrunwizard: 1.1
  - gallery: 14.2.0
  - mail: 0.2.1
  - notifications: 0.1.0
  - ownnote: 1.05
  - provisioning_api: 0.3.0
  - tasks: 0.8
  - templateeditor: 0.1
  - updater: 0.6
  - user_ldap: 0.7.0
Disabled:
  - activity
  - encryption
  - external
  - files_antivirus
  - files_external
  - user_external

The content of config/config.php:

<?php
$CONFIG = array (
  'instanceid' => '*************',
  'passwordsalt' => '*****************************',
  'secret' => '******************************************************',
  'trusted_domains' => 
  array (
   'example.com',
   'www.example.com',
  ),
  'datadirectory' => '/var/www/owncloud/data',
  'overwrite.cli.url' => 'https://example.com/owncloud',
  'dbtype' => 'mysql',
  'version' => '8.2.0.12',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'owncloud',
  'dbpassword' => '********',
  'logtimezone' => 'UTC',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'appstore.experimental.enabled' => true,
  'mail_from_address' => 'cloud',
  'mail_smtpmode' => 'php',
  'mail_domain' => 'example.com',
  'theme' => '',
  'maintenance' => false,
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'loglevel' => 2,
  'trashbin_retention_obligation' => 'auto',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
  'host' => 'localhost',
  'port' => 6379,
  'timeout' => 0,
  'dbindex' => 0,
  ),
);

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

LDAP configuration (delete this part if not used)

not relevant?

Client configuration

Browser:
tested Firefox and Chromium

Operating system:
Ubuntu 14.04

Logs

ownCloud log (data/owncloud.log)

Debug   files_locking   INFO: Incrementing lock type 1 count for /var/www/owncloud/data/user/thumbnails/277/150-200-max.png     2015-10-25T20:04:45+00:00
Debug   files_locking   INFO: Incrementing lock type 1 count for /var/www/owncloud/data/user/thumbnails/277/150-200-max.png     2015-10-25T20:04:45+00:00
Debug   files_locking   PASS: Acquired read lock for /var/www/owncloud/data/user/thumbnails/277/150-200-max.png     2015-10-25T20:04:45+00:00
Debug   user_ldap   initializing paged search for Filter objectclass=* base Array ( [0] => o=domains,dc=example,dc=com ) attr Array ( [0] => dn ) limit 500 offset 500  2015-10-25T20:05:38+00:00
Debug   user_ldap   Ready for a paged search    2015-10-25T20:05:38+00:00
Debug   user_ldap   initializing paged search for Filter objectclass=* base Array ( [0] => o=domains,dc=example,dc=com ) attr Array ( [0] => dn ) limit 500 offset 0    2015-10-25T20:05:38+00:00
Debug   user_ldap   Count filter: objectclass=* 2015-10-25T20:05:38+00:00
Debug   user_ldap   LDAP error Invalid DN syntax (34) after calling ldap_read   2015-10-25T20:05:38+00:00
Error   PHP ldap_read(): Search: Invalid DN syntax at /var/www/owncloud/apps/user_ldap/lib/ldap.php#257 2015-10-25T20:05:38+00:00
Debug   files_locking   INFO: Incrementing lock type 1 count for /var/www/owncloud/data/user/thumbnails/277/150-200-max.png 2015-10-25T20:04:45+00:00
Debug   files_locking   INFO: Incrementing lock type 1 count for /var/www/owncloud/data/user/thumbnails/277/150-200-max.png 2015-10-25T20:04:45+00:00
Debug   files_locking   PASS: Acquired read lock for /var/www/owncloud/data/user/thumbnails/277/150-200-max.png 2015-10-25T20:04:45+00:00
Debug   files_locking   INFO: Read lock requested for /var/www/owncloud/data/user/thumbnails/277/150-200-max.png    2015-10-25T20:04:45+00:00
Debug   user_ldap   LDAP error Invalid DN syntax (34) after calling ldap_read   2015-10-25T20:05:38+00:00
Error   PHP ldap_read(): Search: Invalid DN syntax at /var/www/owncloud/apps/user_ldap/lib/ldap.php#257 2015-10-25T20:05:38+00:00
Debug   files_locking   INFO: Incrementing lock type 1 count for /var/www/owncloud/data/user/thumbnails/277/150-200-max.png 2015-10-25T20:04:45+00:00
Debug   files_locking   INFO: Incrementing lock type 1 count for /var/www/owncloud/data/user/thumbnails/277/150-200-max.png 2015-10-25T20:04:45+00:00
Debug   files_locking   PASS: Acquired read lock for /var/www/owncloud/data/user/thumbnails/277/150-200-max.png 2015-10-25T20:04:45+00:00
Debug   files_locking   INFO: Read lock requested for /var/www/owncloud/data/user/thumbnails/277/150-200-max.png    2015-10-25T20:04:45+00:00
Debug   core    maxY reduced from 1300 to 200   2015-10-25T20:04:45+00:00
Debug   core    maxX reduced from 1300 to 200   2015-10-25T20:04:45+00:00
Debug   files_locking   INFO: Incrementing lock type 1 count for /var/www/owncloud/data/user/thumbnails/278/150-200-max.png 2015-10-25T20:04:43+00:00
Debug   files_locking   INFO: Incrementing lock type 1 count for /var/www/owncloud/data/user/thumbnails/278/150-200-max.png 2015-10-25T20:04:43+00:00
@oparoz
Copy link
Contributor

oparoz commented Oct 25, 2015

I'll mark this as a duplicate of #193
We don't serve the original image for performance reason, but could make it happen "on demand"

@scroom
Copy link
Author

scroom commented Oct 25, 2015

#193 is a different issue I think. My pictures are just shown as thumbnails with a resolution around 200*200px!

@oparoz
Copy link
Contributor

oparoz commented Oct 25, 2015

Ah, OK, from those lines
/var/www/owncloud/data/user/thumbnails/277/150-200-max.png

I can see that the picture has a maximum size of 200, so if the original image is bigger, then there is a problem with the way that the max preview is generated.

Could you try uploading a new image and see if you can get a larger preview?

@oparoz oparoz reopened this Oct 25, 2015
@scroom
Copy link
Author

scroom commented Oct 26, 2015

Tried it with another picture (3117*1622, jpeg) and got it again as thumnail. Again I've got this in the log:

Debug   core    maxY reduced from 1400 to 200   2015-10-26T06:07:46+00:00
Debug   core    maxX reduced from 1400 to 200   2015-10-26T06:07:46+00:00

@scroom
Copy link
Author

scroom commented Oct 26, 2015

Hm, it is working fine on another server I'm managing.

@oparoz
Copy link
Contributor

oparoz commented Oct 26, 2015

There are a couple of variables in the config to set the maximum dimensions of a preview, but it doesn't show up in what you've pasted, so I don't know how it arbitrarily picks 200 as the max. The default value is 2048.

@oparoz oparoz added invalid and removed needs info labels Nov 5, 2015
@oparoz oparoz closed this as completed Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants