-
Notifications
You must be signed in to change notification settings - Fork 16
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
Allow user to specify resolution when downloading a screenshot #339
Comments
Please assign this to me. |
Thank you so much |
This comment was marked as resolved.
This comment was marked as resolved.
Thank you for getting back to me so quickly, but I need some direction on
what I will do to start on the fixes of this issue. Please pull off a
detailed roadmap for me?
…On Mon, 7 Oct 2024 at 17:56, Joel Keyser ***@***.***> wrote:
Assigned #339 <#339> to
@Emmanuel-222 <https://github.com/Emmanuel-222>.
—
Reply to this email directly, view it on GitHub
<#339 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2SYH3IMOEC7K4LNM2MLOBTZ2K4LTAVCNFSM6AAAAABPQJUSHOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGU2DIMBRGYZDOMQ>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Hey @Emmanuel-222 no problem 🙂
How does that sound? Let me know if you have any more questions. |
Thanks, I'll check it out right away!
…On Mon, 7 Oct 2024 at 19:25, Joel Keyser ***@***.***> wrote:
Hey @Emmanuel-222 <https://github.com/Emmanuel-222> no problem 🙂
1. check out the CONTRIBUTING.md
<https://github.com/amelioro/ameliorate/blob/main/CONTRIBUTING.md>
file; it's got info about running the project, an overview of the code, and
a link at the bottom for the PR process (you'll need to fork this repo and
make your changes on your own branch there)
2. I realize the text in the screenshot is a bit outdated, it says
"download screenshot" now - if you search for that text in the repo you'll
find the current logic for downloading a screenshot without yet being able
to specify the resolution
3. instead of downloading the screenshot right away, we should be able
to open a modal to specify the resolution (then confirming the dialog
should trigger the download logic). we're actually doing something similar
for renaming a View
<https://github.com/amelioro/ameliorate/blob/8b8c16920c84b2e3ae89abd5c2bc5ffbf52c43b1/src/web/topic/components/TopicPane/QuickViewSection.tsx#L110-L118>,
so that logic might be able to help you get started. you can find that
View-rename dialog on the playground
<https://ameliorate.app/playground>:
image.png (view on web)
<https://github.com/user-attachments/assets/0faa204d-3150-45e3-b2e8-130d8da05ccd>
How does that sound? Let me know if you have any more questions.
—
Reply to this email directly, view it on GitHub
<#339 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2SYH3LFZD6QDYDP35BGSTTZ2LGZJAVCNFSM6AAAAABPQJUSHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJXGYYDCNJXG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Screen.Recording.2024-10-10.141704.mp4This is what I have done so far. What do you think? |
@Emmanuel-222 functionality seems good, but I'm hoping for something like this:
I'm also not sure if specifying a quality is necessary - I was envisioning the pixel resolution to indicate both the size and quality of the image. You should be able to find good guidance for this work by referring to the |
Hi @keyserj, This is what I have worked on so far. What do you think? Screen.Recording.2024-10-14.153246.mp4 |
Hey @Emmanuel-222, that looks pretty cool! I use a tool to take screenshots like this all the time, and it's nice to see what the code might look like. But I think for the purposes of this issue, this solution has a few significant drawbacks. First off, to clarify: the So the area being captured for the screenshot is currently unchangeable - it always captures all of the nodes being displayed, fits them within the image, and centers them. That's intentional, so that you don't have to spend effort repositioning or zooming-to-fit your diagram, or only snapping certain parts of it. If you ever want to only capture certain nodes, you can just filter out the other nodes via the app's filtering functionality. Manually capturing an area takes more work to get what you want, and each snapshot you take will likely be slightly different than if you try taking another. Another downside of the manual capture is that you can only capture a region that fits within your monitor's size. The default resolution is currently larger than my monitor, which enables a higher quality e.g. you can zoom into the screenshot and see more pixels than you can see just looking at the diagram via the app on your monitor. For these reasons, I think the solution initially suggested by this issue would be better. Namely, this is the solution in the image below, where a modal is provided to enter pixel values if the user desires. |
Can you break this down?, I really don' understand it. |
Regarding how the code currently works: if you change the lines that hardcode the resolution, say you decrease these from 2560 x 1440 to 1920 x 1080, you'll still get the same nodes in the image, centered in the same spot. But the KB of the image file will be smaller, and the image might look a little more blurry, because there are fewer pixels being used. This GitHub issue is asking for a modal where you can enter these two numbers. This modal should look and behave very similarly to the Quick View modal in the gif below (but instead of accepting Let me know if there's anything more specific that I can clear up. |
Hi @joel,
So I think for this one it would be for good user experience that the user
maybe not of necessity should only see the resolution(height and width) as
they drag the cursor for screenshots. What do you think?
…On Tue, Oct 15, 2024, 14:07 Joel Keyser ***@***.***> wrote:
@Emmanuel-222 <https://github.com/Emmanuel-222>
Regarding how the code currently works: if you change the lines that
hardcode the resolution
<https://github.com/amelioro/ameliorate/blob/b2256c2139a8228cb5e2e6854b2ba7c5ae86ec6f/src/web/topic/components/TopicWorkspace/MoreActionsDrawer.tsx#L70-L71>,
say you decrease these from 2560 x 1440 to 1920 x 1080, you'll still get
the same nodes in the image, centered in the same spot. But the KB of the
image file will be smaller, and the image might look a little more blurry,
because there are fewer pixels being used.
This GitHub issue is asking for a modal where you can enter these two
numbers. This modal should look and behave very similarly to the Quick View
modal in the gif below (but instead of accepting Title, it should accept
Width and Height:
chrome_2024-10-10_10-13-35.gif (view on web)
<https://github.com/user-attachments/assets/c8d9d003-1938-4f01-bffb-632f30bd1a9a>
Let me know if there's anything more specific that I can clear up.
—
Reply to this email directly, view it on GitHub
<#339 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2SYH3KFO63JEXCPBYFCGYLZ3UHRHAVCNFSM6AAAAABPQJUSHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJTHA3DOOBTGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Emmanuel-222 as I mentioned above, dragging the cursor to take the screenshot is not desirable because:
Do these points make sense? |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Hey @Emmanuel-222 thanks for looking at this ticket - I'm going to unassign you to open this ticket for others. Let me know if you're still working on it and I can reassign you. |
Sure @joel still working on this.
Just a bit carried away due to the season 😀. Compliment of the season 😀
…On Fri, Dec 27, 2024, 21:14 Joel Keyser ***@***.***> wrote:
Hey @Emmanuel-222 <https://github.com/Emmanuel-222> thanks for looking at
this ticket - I'm going to unassign you to open this ticket for others. Let
me know if you're still working on it and I can reassign you.
—
Reply to this email directly, view it on GitHub
<#339 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2SYH3OIOYHS7X2HZ3ZDDGT2HWYJNAVCNFSM6AAAAABPQJUSHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGAYDEOJRG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
How many times did you send this message ?
…On Fri, Dec 27, 2024, 21:25 Joel Keyser ***@***.***> wrote:
Assigned #339 <#339> to
@Emmanuel-222 <https://github.com/Emmanuel-222>.
—
Reply to this email directly, view it on GitHub
<#339 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2SYH3PXQT57PNM3PIO75X32HWZURAVCNFSM6AAAAABPQJUSHOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVG43TINZSGU4DQOI>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Once on this issue, once on the associated PR. |
Is your feature request related to a problem? Please describe.
I'm happy that I can take a high quality image of my diagram via the screenshot button, but I want to be able to increase or decrease quality and change the dimensions as I want, so that I can get exactly the image I want, perhaps for a desktop background, or a print-out diagram.
Describe the solution you'd like

When I click the screenshot button, I want to specify the resolution of the image:
Describe alternatives you've considered
Additional context

The screenshot button is in the
MoreActionsDrawer
, accessed here:Technical ideas
The text was updated successfully, but these errors were encountered: