A few days ago I committed a feature I have been wanting for a long time in Gwenview: rotating images directly from the thumbnail view. It works this way: when you move your mouse over a thumbnail, a small button bar appears. This button bar contains three buttons: save, rotate left and rotate right.
Mandatory screenshot:
![]()
It should be very handy to quickly fix the orientation of a set of images you just imported from your camera.
I played a bit with Qt stylesheets to produce the button bar. I think it looks nice, but the hardcoded black color might be out of place depending on your choice of thumbnail view background color and your desktop colorscheme. If you feel like improving it, the CSS rules are defined in thumbnailview.cpp, around line 78 (maybe I should move the CSS to a data file instead of hardcoding them in the source code).
Nice, realy nice idea
Maybe you can use QPalette to get the colors you put on the CSS rules?
Great work, I’m looking forward to Gwenview in 4.0 The new interface looks really good by the way, clean and easily usable.
Very Nice. I defiantly think the css values should be in a datafile, good idea. It would be really neat if Dolphin adopted this automatically so any time I mouse over a image for that matter it would bring up these options. Maybe even an option to add it to the plasma desktop would be cool in a little frame, that’s most likely too much. Good Job!
Hi, I saw a better way to correct orientation of camera imported images via XMP. http://www.gnome.org/start/2.20/notes/en/index.html#rnusers-eog
Very cool, Aurelien! Would it be possible to assign shortcuts to rotating the currently-hovered image? Like CTRL-1 and CTRL-2. And it would be cool if I didn’t have to save each image separately, but rather use a big button in the toolbar or be asked on exit?!
thanks!
Hi, really cool. Even if I’m not sure if its really needed due to teh image metadate that contains the information to rotate the image. nevertheless it might be usefull for older cameras.
One Question: Will you improve the look of the thumbnails with something like a border around them? Besides that I think that gwenview looks extremly promising.
please implement anouther way of doing this: by mouse gestures: user clicks and holds down left mouse button somewhere in the picture (not exactly in the center) and moves mouse clock-wise or counter clockwise…
@Albert Astals Cid: Yes I will probably try to use the widget palette.
@anonymous: Are you talking about rotating images based on the Exif orientation tag? If so, it’s already implemented.
@ben: I am not sure about the shortcuts, will think about it. Concerning saving, that’s what Gwenview does: you can save all the changes through the save bar or when quitting.
@TeeZee: I don’t know about the newest camera, but while my camera (Minolta Z3) does set the orientation tag, it only does so if I rotate the image from within the camera.
Yes, I will try to improve the thumbnails presentation.
@Nick Shaforostoff: Hum… I am not sure it would be a real gain, since you just have to click a button which is already very close to your mouse cursor. Beside, it might make drag’n'drop confusing.