-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Editor] Add a basic stamp editor (bug 1790255) #16585
Conversation
d773eb1
to
0f08081
Compare
Another question that I had, without actually having tested this patch (assuming that it's rebased on top of PR #16588).
Assuming that I understand things correctly, which I'm probably not, won't this cause problems in step 3 (or possibly 4) now? |
0f08081
to
def81ab
Compare
The image we get from a file or an url, a.k.a the base image, is never exposed. Each time we need it somewhere else it has to be cloned and it's exactly what |
Unfortunately I believe that it will lead to a copy of the |
85b1d35
to
87efc5c
Compare
Having tested this a little bit everything seems to work well, however there's one feature that I feel is "missing" here: |
We could do like most other editing software: the corner ones resize while maintaining aspect ratio, the other four resize without maintaining aspect ratio. This would be simpler than adding other things in the UI. |
Yes it'd be nice but as far as I know it isn't possible to achieve this with basic css/html (see resize on MDN). |
In that case, how about we simply maintain the original aspect ratio when resizing stamp-images[1] and worry about "arbitrary" resizing later (in a follow-up)? [1] Looking at the Ink-editor, it only allows resizing with maintained aspect ratio. |
I agree with that idea, seems more useful than arbitrary resizing. We can then ask UX for their opinion. |
87efc5c
to
b3657a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not really had time to look at the src/display/editor/stamp.js
file yet, but will try to do that tomorrow.
b3657a1
to
474082c
Compare
474082c
to
a03fbbf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me, with the final comments addressed and passing tests; thank you!
a03fbbf
to
f8bbdea
Compare
/botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 1 Live output at: http://54.241.84.105:8877/fbc57048aeec52b/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 1 Live output at: http://54.193.163.58:8877/79f1db19ae20342/output.txt |
For now it allows to add a stamp annotation with an image selected from the file system.
f8bbdea
to
37bd78c
Compare
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/fbc57048aeec52b/output.txt Total script time: 0.18 mins |
/botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/1f42814096d2714/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 2 Live output at: http://54.193.163.58:8877/ba27d748066db2c/output.txt |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/79f1db19ae20342/output.txt Total script time: 0.48 mins |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/1f42814096d2714/output.txt Total script time: 4.40 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/ba27d748066db2c/output.txt Total script time: 18.25 mins
|
For now it allows to add a stamp annotation with an image selected from the file system.