Bug 156046 - Preview in information panel should resize to fill panel if desired
Summary: Preview in information panel should resize to fill panel if desired
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-17 23:09 UTC by Todd
Modified: 2008-02-03 00:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of fix (61.42 KB, image/jpeg)
2008-02-03 00:44 UTC, Peter Penz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Todd 2008-01-17 23:09:54 UTC
Version:            (using KDE 4.0.0)
Installed from:    SuSE RPMs

The information panel is useful, but the previews it shows are very small even at their largest size.  It would be nice to have an option where the preview would automatically resize to fill as much of the information panel as possible while not changing the aspect ratio and not going over the real size for images and videos, if we ever get the option to preview videos.  In other words, the preview will grow so that it keeps the same aspect ratio, neither of its dimensions are larger than those of the original file, and neither of its dimensions are larger than those of of the information panel itself (leaving room for the text part of the information bar and an appropriate margin, obviously).  

This should probably not be the default behavior since it would take more memory and would also be incompatible with cached thumbnails and thumbnails stored in files, but it would still be a very useful option.  Further, it could at least provide a very simple makeshift slideshow without having to increase the complexity of dolphin for the end user in any way.  Just making the information bar very large relative to the main browser would accomplish this (although allowing the information bar to be above or below the browser would work better still).  More complicated options, like whether to stretch the image or change the aspect ratio, would be left to dedicated image viewers like gwenview.  As far as appearances would go it would look not different and have no more options than the original information panel, only the size of the preview would be different (and even then only if the panel were resized).  The option could be as simple as a "resize preview to fill information panel" menu entry or toolbar button.
Comment 1 Peter Penz 2008-01-17 23:12:42 UTC
Thanks for your good input, I like the ideas. Well let's see what we can do for KDE 4.1 ;-)
Comment 2 Claes 2008-01-31 20:39:00 UTC
Seconded! It would be much quicker to manage a large collection of files if the information panel was able to show a larger, preferably readable view of file contents. I have investigated many file managers, MC does it best but only for text unfortunately. 
Comment 3 Peter Penz 2008-02-03 00:17:36 UTC
SVN commit 770173 by ppenz:

Information Panel: If the width of the panel is increased, also increase the size of the item preview to take advantege of the additional space.

BUG: 156046

 M  +8 -3      infosidebarpage.cpp  
 M  +16 -1     pixmapviewer.cpp  
 M  +8 -0      pixmapviewer.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=770173
Comment 4 Peter Penz 2008-02-03 00:44:08 UTC
Created attachment 23407 [details]
Screenshot of fix

Just to show how the result looks like :-)
Comment 5 Pino Toscano 2008-02-03 00:52:11 UTC
(Just an aside note: screenshots are not good when done as jpeg, as jpeg usually destroys texts. Prefer png for that.)
Comment 6 Peter Penz 2008-02-03 00:58:36 UTC
> (Just an aside note: screenshots are not good when
> done as jpeg, as jpeg usually destroys texts. Prefer png for that.)

I know, but the PNG had the double size even with the highest compression -> that's why I've chosen a JPEG... ;-)