Tiny Preview Images Issue
I just upgraded from OC 7.0.0 stable to OC 7.0.1. I am viewing images through the slide show and I have noticed 2 issues, 1 confirmed with brantje and a user by the name of Loki_.
The preview images are tiny. None are full size, I have pictures coming up as 20x36 and 26x36 and the raw images should be taking up the screen as they are pictures from my camera (like 540x960). I have seen it occur with jpg and png. From what I have looked at it, it is a server side issue. The JS is creating the image with the max x field set (Ex: /owncloud/index.php/core/preview.png?file=%2FScreenshots%2FScreenshot_2013-06-05-13-18-02.png&x=1024&a=true&scalingup=0 ) but the server seems to be ignoring any value for X and is making them a standard size.
There is nothing in my owncloud/config/config.php related to max preview size. I have not customized the file myself any. My fields are: 'instanceid', 'passwordsalt', 'trusted_domains', 'datadirectory', 'dbtype', 'version', 'dbname', 'dbhost', 'dbtableprefix', 'dbuser', 'dbpassword', 'installed', 'loglevel'
The only things in my log when set to everything is: Debug core OC_Image->fixOrientation() Orientation: -1 2014-08-05T12:29:03+00:00 Debug core Generating preview for "/Screenshots/Screenshot_2013-06-12-14-46-50.png" with "OC\Preview\Image" 2014-08-05T12:29:03+00:00
When I first upgraded, all the action images on the slide show (except the center one) didn't show up. (IE: left, right, close, play). This happened in IE 11 and FF 31. When I did a force refresh, the images finally did show up. I am thinking it is somehow a cache issue?
Steps to reproduce
- Upload an image (1920*1020 will do fine)
- Go to the files app
- Click an image
Expected behaviour
Image opens with acual size
Actual behaviour
Small unreadable thumbnail appears
Server configuration
dev-server: Ubuntu 13.10 LTS prod-server: Debian
Web server: dev-server: apache prod server: nginx
Database: Both mysql
PHP version: Both 5.5
ownCloud version: (see ownCloud admin page) Both 7.0.1 git
Updated from an older ownCloud or fresh install: Update from 7.0.0
List of activated apps: Files Passman Calendar Contacts
The content of config/config.php:
$CONFIG = array (
'instanceid' => 'xxxx',
'passwordsalt' => 'xxxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => 'xx.xx.com',
),
'datadirectory' => '/var/www/data',
'dbtype' => 'mysql',
'version' => '7.0.1.1',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'ownclouduser',
'dbpassword' => 'iwanttobeahippie',
'installed' => true,
'theme' => '',
'maintenance' => false,
'mail_smtpmode' => 'php',
'mail_smtpname' => 'brantje',
'mail_smtppassword' => '*** removed for security reasons',
);
On both servers ^
Are you using external storage, if yes which one: local/smb/sftp/... No Are you using encryption: yes/no No
Client configuration
Browser: Chrome / Firefox Operating system: Windows
What url is generated for the image?
something like http://localhost/owncloud/index.php/core/preview.png?file=%2Ffoo.jpg&x=1920&y=1102&a=true&scalingup=0
https://xxx.xxx.com/index.php/core/preview.png?file=%2Fscreenshots%2F2014-07-07_23-49-33.png&x=1920&a=true&scalingup=0
So x=1920 And yes, this is a 1920*1080 file.
View from folder (Only tiny preview)
https://xxx/index.php/apps/files/?dir=%2Fassets%2Flab%20photos%2F2004%20%E8%BF%8E%E6%96%B0%E9%80%81%E8%88%8A
View from Photo App (works normally)
https://xxxx/index.php/apps/gallery#assets/lab%20photos/[2010-0828]%E5%AF%A6%E9%A9%97%E5%AE%A4%E5%87%BA%E9%81%8A_%E5%85%AC%E9%A4%A8to%E5%85%AB%E9%87%8C/%E5%AE%87%E5%93%B2/DSCF1079.JPG
I think the problem is that I forgot to backport one commit for the gallery app.
Can you try applying https://github.com/owncloud/gallery/commit/7e1866d64336b39eeb9e7324dad5038b10508d5f
Shall I wait for a fix or just add the green lines by myself if my server is a productive server?
I can test if @icewind1991 helps me out.
Just fetched latest master and now it works, previews are giving big images. :thumbsup: @icewind1991
@brantje what do you mean with master?
I can confirm that manually applying owncloud/gallery@7e1866d fixes the issue for me. Though the images I viewed with the broken version still were tiny. I fixed this by deleting the content of the user's thumbnails folder.
Sorry, that patch works indeed. :thumbsup:
@icewind1991 I try 7e1866d64336b39eeb9e7324dad5038b10508d5f and it works perfect. Setup: oC 7.0.1 (bug is after update, in 7.0.0 images was ok), debian 7.6, mariadb 10.0.12, nginx 1.4.5, php 5.4.4
For others: first, I think it not work but remember to clear browser cache if you caching js files
Hi,
Im still having problems after applying owncloud/gallery@ 7e1866d
It fixed the preview of my images when they are in a folder, but not when they are in the root of my users.
Etc: http://xxxxxx.com/index.php/apps/files/ <----- Image in the root are still not working
http://xxxxxx.com/index.php/apps/files/?dir=%2Fexample <----- Image in folders working
Best regards Orgiz
Hi, I'm also still having problems after applying owncloud/gallery@ 7e1866d
I set owncloud log to debug and uploaded a new picture, this are my logs and settings:
Actual behaviour
The URL of an Image now includes y=size parameters but the size of the picture is still 32x32px Example: https://xxx/index.php/core/preview.png?file=%2Ftest%2FTulips.jpg&x=1701&y=930&a=true&scalingup=0
Server configuration
Ubuntu 14.04.1 LTS Web server: NGINX 1.4.6 Database: MYSQL PHP version: PHP 5.5 ownCloud version: (see ownCloud admin page) ownCloud 7.0.1 (stable) Updated from an older ownCloud or fresh install: Update from Owncloud 7.0.0. List of activated apps: Activity, Deleted Files, PDF Viewer, Mail Template Editor, Pictures, Share Files, Text Editor, Video Viewer The content of config/config.php:
<?php
$CONFIG = array (
'instanceid' => 'xxx',
'passwordsalt' => 'xxx',
'trusted_domains' =>
array (
0 => 'xxx.xx',
),
'datadirectory' => '/mnt/oc-data',
'dbtype' => 'mysql',
'version' => '7.0.1.1',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'owncloud',
'dbpassword' => 'xxx',
'installed' => true,
'forcessl' => true,
'enable_previews' => false,
'mail_smtpmode' => 'smtp',
'mail_from_address' => 'owncloud',
'mail_domain' => 'xxx.xx',
'mail_smtphost' => 'xxx',
'logfile' => '/var/log/owncloud/owncloud.log',
'loglevel' => '0',
'logtimezone' => 'Europe/Vienna',
'log_type' => 'owncloud',
'log_authfailip' => true,
'check_for_working_htaccess' => false,
'check_for_working_webdav' => false,
'has_internet_connection' => true,
'appstoreenabled' => false,
'updatechecker' => false,
'theme' => '',
'maintenance' => false,
);
Are you using external storage, if yes which one: local/smb/sftp/... NO Are you using encryption: yes/no NO
Client configuration
Browser: FF 31, IE 11 Operating system: W7
Logs
ownCloud log (data/owncloud.log)
Debug core OC_Image->fixOrientation() Orientation: -1 2014-08-06T09:16:52+02:00
Debug core OC_Image->loadFromBase64, couldn't load 2014-08-06T09:16:52+02:00
Debug core Generating preview for "/test/Tulips.jpg" with "OC\Preview\Unknown" 2014-08-06T09:16:52+02:00
Oh however, public preview gives small images. @icewind1991
I have the same problem: When sharing a public link, the preview is tiny, like the thumbnail in the Files app. The pictures app is (or should be) unrelated to this.
Public/sharing mode can be fixed with commit 4bbea118c27f3ef7d088a5c38f7cdee16fa29eac
Tried and tested working on my install. Remove the contents of data/[user]/thumbnails to force it to re-create previews.
Everyone who can reproduce the public sharing tiny thumbnails, please test https://github.com/owncloud/core/pull/10223 by @dannosaur
Just updated from 6.0.4 to 7.0.1 and experienced tiny images both in public sharing as well as in file browser viewing. Commits https://github.com/owncloud/core/commit/4bbea118c27f3ef7d088a5c38f7cdee16fa29eac and https://github.com/owncloud/gallery/commit/7e1866d64336b39eeb9e7324dad5038b10508d5f fixed them for me. (after clearing the users 'thumbnails' dir)
I only patched 7e1866d, deleted thumbnails and public viewing works again. Without patching 4bbea11 !