Bug 467324 - Feature Request: Stamp annotations with fixed length/width ratio
Summary: Feature Request: Stamp annotations with fixed length/width ratio
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-14 11:28 UTC by rbablotb
Modified: 2023-10-24 03:37 UTC (History)
2 users (show)

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


Attachments
Example of distorted stamp picture (33.13 KB, image/png)
2023-03-14 11:28 UTC, rbablotb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rbablotb 2023-03-14 11:28:11 UTC
Created attachment 157267 [details]
Example of distorted stamp picture

I often use the custom stamp annotation to add my handwritten signature image to some pdf documents.
Once the custom stamp is selected, one can add the signature by simply clicking on the pdf, and in this case the stamp has length/width ratio of original custom picture (in my case, my rectangular handwritten signature).
But another way to add a stamp is by not simply clicking, but rather doing a drag and drop. In that case, the only way (for what I know) to keep a given ratio is to press the shift key when doing the drag and drop. But by doing so, the length/width ratio is a 1:1 ratio, even when the custom picture used for the stamp doesn't have a square shape. If the original picture has rectangular shape, then it's distorted when doing so.

Some feature that I'd gladly see implemented are:
- in custom stamp parameters, a checkbox to force keeping length/width ratio of original picture when using drag and drop
and/or
- a shortcut to keep length/width ratio of original picture when doing drag and drop. Maybe something like ctrl+drag and drop
Comment 1 Danie 2023-07-07 15:49:45 UTC
This would be useful especially for signatures, as I also use custom stamps for signatures as well as tick marks. Either an optional check for the stamp to maintain its aspect ratio, or as suggested, hold a key like CTRL whilst resizing with the mouse.
Comment 2 Reuben Martin 2023-10-24 03:37:10 UTC
It also needs to re-draw the image in real time within the dotted outline so that you can preview scale and placement while dragging. This lack of aspect locking and preview makes for a very clunky stamp tool.