Bug 196789 - Handling of size limits for document previews
Summary: Handling of size limits for document previews
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 16.12.2
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-16 19:30 UTC by Renan Inácio
Modified: 2021-05-15 22:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Renan Inácio 2009-06-16 19:30:47 UTC
Version:            (using KDE 4.2.90)
OS:                Linux
Installed from:    Ubuntu Packages

Currently, when setting the size limit for previews, it does not generate previews for the files with size above that limit. That is good for images, but considering other file types, like PDF or plain text (or even video), this is too restrictive.

If I have a 5MB size limit, it will not generate thumbnail for a 10MB text file. But note that it is not needed to read 10MB of text to generate the thumbnail for the first lines. I believe the size limit is to restrict the amount of data to read from disk/network, which would not make much sense in this case. 

I believe this also applies to PDF and video files, where only one page or frame is previewed, requiring much less reads than the whole file.

So the wish would be to take in consideration how much would need to be read depending on the particular file type and content, instead of blindly assuming the entire file.
Comment 1 Frank Reininghaus 2009-06-16 20:18:53 UTC
Thanks for the suggestion! I agree that this sounds very reasonable from a user's point of view. But I'm afraid this would not be easy to implement, and it would add a lot of complexity to the code (the calculation of the required size would have to be done separately for every file type).

Moreover, I don't know if it's actually possible to read files partially over a network connection.
Comment 2 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:19:49 UTC
Resetting assignee to default as per bug #305719
Comment 3 Justin Zobel 2021-03-09 02:19:07 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 4 Renan Inácio 2021-03-12 00:35:05 UTC
This wish is still relevant.