Bug 233404 - resnap command to repeat previously made snapshot
Summary: resnap command to repeat previously made snapshot
Status: RESOLVED FIXED
Alias: None
Product: ksnapshot
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Richard Moore
URL:
Keywords: usability
: 307207 318690 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-05 20:02 UTC by David Woods
Modified: 2013-10-21 08:58 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11


Attachments
Patch to re-use the last shape used (rectangular and freehand regions) (7.33 KB, patch)
2013-02-18 09:27 UTC, Jérôme Borme
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Woods 2010-04-05 20:02:26 UTC
Version:           0.8.1 (using KDE 4.4.2)
Installed from:    Ubuntu Packages

I frequently use ksnapshot to create screenshots of my portfolio items. It would be useful in this and other instances where a group of snapshots are taken to be able to repeat a snapshot. 

Fullscreen mode would simply resnap the entire screen. Window capture would resnap the originally selected window. This would be most useful in Region mode, where the coordinates and size of the snap rectangle could be repeated.

This would allow groups of snapshots to be aligned in the same place, either for visual continuity or to create a unified starting point where further image editing could be optimized.
Comment 1 Christoph Feck 2012-09-22 12:53:25 UTC
*** Bug 307207 has been marked as a duplicate of this bug. ***
Comment 2 Fazaé 2012-09-27 13:16:44 UTC
This one could be useful.
When i a write a tutorial i need to take full screenshot of the same windows. 

It could be easier if i can draw my first box and next capture will be the same size.

Bonus: autosave on screenshot.
Comment 3 Jérôme Borme 2013-02-18 09:27:04 UTC
Created attachment 77401 [details]
Patch to re-use the last shape used (rectangular and freehand regions)

While most ksnapshot use cases are covered by single snapshot and leaving ksnaphot, some users keep ksnapshot open to take series of snapshots, or just because the first shot was not good enough. In this case, it is frequent that the user wants to take several snapshots in exactly the same, or in a very close position of the screen. Because precisely locating rectangular handles or freehand shapes is a cumbersome task, it would be very nice if ksnapshot could remember the last shape. The user could either reuse the same shape by pressing Enter or double-clicking, or fine-tune the rectangular handles or translate a freehand shape.

The patch attached does this. It does not affect the workflow of the users who want to take a single snapshot. It only has an effect at the second use of either Rectangular or Freehand regions. The user who is not interested in this feature can easily override it by drawing another shape at a different place (possibly dragging the former shape to a different location of the screen if the new shape is completel included inside the older one). Because the use is easily understandable, straighforward and easy to override, I think there is no need to add an option, whoch would just complicate the gui for an option that many users do not need at all, and that user who need it will understand immediately.
Comment 4 Christoph Feck 2013-04-21 23:30:51 UTC
*** Bug 318690 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Feck 2013-04-21 23:54:38 UTC
Jérôme, thanks, the patch looks good (except for the trailing spaces in the doc text). Do you have a git account (or would you like to create one) to commit to master?
Comment 6 Christoph Feck 2013-05-14 20:35:37 UTC
Jérôme, please answer comment #5.
Comment 7 Jérôme Borme 2013-05-15 09:11:30 UTC
(In reply to comment #5)
I do not have a git account yet (I was just very busy lately to consider coding). I will request one if you think this is best.
Comment 8 Christoph Feck 2013-05-21 22:08:02 UTC
Since we have soft feature freeze today, I will commit it for you this time. It is simpler for us if you request an account and commit it yourself (after review) next time.
Comment 9 Christoph Feck 2013-05-21 22:17:29 UTC
Git commit 7485e210b2db48f7b59f1165cb5322519a0710c9 by Christoph Feck, on behalf of Jérôme Borme.
Committed on 22/05/2013 at 00:12.
Pushed by cfeck into branch 'master'.

Reuse previous region for subsequent snapshots
FIXED-IN: 4.11

M  +7    -0    doc/index.docbook
M  +5    -2    freeregiongrabber.cpp
M  +2    -1    freeregiongrabber.h
M  +2    -1    kbackgroundsnapshot.cpp
M  +16   -2    ksnapshot.cpp
M  +5    -0    ksnapshot.h
M  +5    -2    regiongrabber.cpp
M  +2    -1    regiongrabber.h

http://commits.kde.org/ksnapshot/7485e210b2db48f7b59f1165cb5322519a0710c9
Comment 10 Fazaé 2013-05-22 07:56:13 UTC
Cool, thanks for your works guys ;-)
Comment 11 Fazaé 2013-10-21 08:58:36 UTC
I have received this new features with kubuntu1310. 
Cool, thanks again for your work.