Bug 328090 - File picker dialog doensn't show previews/thumbnails of JPEG's larger than 5MB
Summary: File picker dialog doensn't show previews/thumbnails of JPEG's larger than 5MB
Status: RESOLVED FIXED
Alias: None
Product: kfile
Classification: Applications
Component: general (show other bugs)
Version: 4.10.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords: investigated
: 375625 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-25 23:47 UTC by Luis L C
Modified: 2018-04-10 21:33 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luis L C 2013-11-25 23:47:22 UTC
When picking a file(Uploading from Google Chrome for example) using the native KDE file picker, it fails to create a file preview or thumbnail for files larger than 5 MB, said files are fine and are able to be opened on other apps such as Gwenview.

Dolphin does show the thumbnail/preview correctly.  The problem is when using the file picker dialog.


Reproducible: Always

Steps to Reproduce:
1.Open an app that uses the native KDE file picker.
2.Navigate to a path or folder with many picture files.
3.Click the "Show thumbnail/Preview" button on the top of the dialog.
Actual Results:  
Thumbnails or previews of image files are shown correctly, but only for files that are smaller than 5 MB.

Expected Results:  
Should show the thumbnails for all image files.

I'm using Kubuntu 13.10.

For reference I use this JPEG file from Wikipedia:

http://upload.wikimedia.org/wikipedia/commons/2/2d/Snake_River_%285mb%29.jpg
Comment 1 Jekyll Wu 2013-11-27 07:30:23 UTC
should be related :

//  kdelibs/kio/kio/previewjob.cpp
void PreviewJobPrivate::startPreview()
{
    ......
    KConfigGroup cg( KGlobal::config(), "PreviewSettings" );
    maximumLocalSize = cg.readEntry( "MaximumSize", 5*1024*1024LL /* 5MB */ );
    maximumRemoteSize = cg.readEntry( "MaximumRemoteSize", 0 );
   
   .....
}

To raise the limit, edit ~/.kde4/share/config/kdegloabls,  add/edit :

[PreviewSettings]
MaximumSize=10485760
Comment 2 Luis L C 2013-11-27 17:42:49 UTC
You're right. On my system the kdeglobals file is on:

~/.kde/share/config/kdeglobals

I edited the lines you said, and the file dialog now displays the previews up to 10 MB which is fine.

Thanks!
Comment 3 Martin Riethmayer 2014-08-05 18:42:20 UTC
Since the size for local files has been disabled on dophlin (i.e. all files will get a preview if possible, no matter how big it is) I think this should be handled the same in the file chooser dialog.

There is no setting in Dolphin (nor in the File dialog) to increase this size, heading down to the config section is not really user friendly :-)
Comment 4 tosiara 2014-11-30 14:10:18 UTC
There is another issue with similar behaviour. 
Folder does not show thumbnail of pictures inside if all the pictures are larger than 5MB. Putting "MaximumSize=10485760" into kdeglobals resolves the issue.
This issue reproducible in openSUSE 12.3, 13.1 an latest 13.2
To reproduce:
1. create folder
2. put large JPEG into that folder
3. enable "Preview"
4. folder's icon remains default
5. now edit kdeglobals and try Preview again - folder now shows icon of jpeg picture inside
Comment 5 Christoph Feck 2017-02-01 23:52:11 UTC
*** Bug 375625 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2018-04-10 21:33:42 UTC
Works for me out of the box in KDE Frameworks 5.45.