Skip to content
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

Export current shown image frame (red rectangle) translated and with selected camera resolution #3705

Open
n1k0m0 opened this issue Apr 4, 2024 · 8 comments
Labels
feature Entirely new feature

Comments

@n1k0m0
Copy link

n1k0m0 commented Apr 4, 2024

Is your feature request related to a problem? Please describe.
Exporting the red image rectangle (image frame) of currently set telescope, camera, lense,etc.-combination as a translated image with the resolution of the selected camera.

Describe the solution you'd like
a) Simple solution would be a special screenshot button that copies the translated and (camera-width/height)-scaled image into the clipboard.
b) More sophisticated solution would perform also steps of (a) but generates a fit-file that also includes coordinates and rotation and stores that on the harddrive.

Describe alternatives you've considered
My current workflow is to create a screenshot of the full application and then manually cut, rotate, and resize it using photoshop.

Additional context
I use the "alternative method" as descirbed above for photo frame planning. I screenshot the complete stellarium app with appropriate camera, telescope, etc settings. Then, I cut the red rectangle, rotate it and resize it to the correct camera resolution. Then at the beginning of an astro-photo image session, I plate-solve the created image in Ekos to slew to the shown position, rotate the camera appropriately as indicitated by ekos, and thus create the exact photo frame I previously chose. Works well, but a direct export (with coordinates and rotation) would be really helpful.

@alex-w alex-w added the feature Entirely new feature label Apr 4, 2024
Copy link

github-actions bot commented Apr 4, 2024

Hello @n1k0m0!

Thank you for suggesting this feature.

@gzotti
Copy link
Member

gzotti commented Apr 7, 2024

Given the fact that we have no solution to rotate the view and don't intend allowing this, I doubt this is going to ever happen.

@n1k0m0
Copy link
Author

n1k0m0 commented Apr 7, 2024

Given the fact that we have no solution to rotate the view and don't intend allowing this, I doubt this is going to ever happen.

You don't need to rotate the view for that. You proably have the angle of the rotation of the red rectange ("astro camera view"), I assume. Thus, creating a screenshot and then rotate the screenshot (based on that red rectangle rotation angle -- of course reverse) and cutting the screenshot could be the solution.

@10110111
Copy link
Contributor

10110111 commented Apr 7, 2024

creating a screenshot and then rotate the screenshot

Sure, this is a quick-and-dirty solution, but the text labels will be turned in the resulting screenshot.

@gzotti
Copy link
Member

gzotti commented Apr 7, 2024

If we don't care about black corners and screenshot geometry, the scripting function to take screenshots could be made even more complex by a rotation argument that is applied by some QImage::rotate() function (if available. I am away from my dev PC.) Very ugly, and fits the needs of one person...
Maybe you can just write a script tha first makes a screenshot and then calls some external program to rotate.

@n1k0m0
Copy link
Author

n1k0m0 commented Apr 8, 2024

If we don't care about black corners and screenshot geometry, the scripting function to take screenshots could be made even more complex by a rotation argument that is applied by some QImage::rotate() function (if available. I am away from my dev PC.) Very ugly, and fits the needs of one person... Maybe you can just write a script tha first makes a screenshot and then calls some external program to rotate.

Can you pinpoint me to the source code position. Then I would have a look at the code on my own and try to adapt it to my needs :-)

@10110111
Copy link
Contributor

10110111 commented Apr 8, 2024

Can you pinpoint me to the source code position

The screenshot code is in StelMainView::doScreenshot(). The red frame is rendered in Oculars::drawSensorFrameAndOverlay() (which is inside the Oculars plugin). Oh, BTW, don't forget that this frame in general has curved sides in all projections except perspective.

@n1k0m0
Copy link
Author

n1k0m0 commented Apr 9, 2024

Can you pinpoint me to the source code position

The screenshot code is in StelMainView::doScreenshot(). The red frame is rendered in Oculars::drawSensorFrameAndOverlay() (which is inside the Oculars plugin). Oh, BTW, don't forget that this frame in general has curved sides in all projections except perspective.

Thanks, I'll have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Entirely new feature
Projects
None yet
Development

No branches or pull requests

4 participants