-
Notifications
You must be signed in to change notification settings - Fork 776
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
Image rotation support #918
Comments
Rotating images is currently not supported. |
@masac Just to be sure: This is an image, right? |
Yes, png image. http://www.easychalk.eu/ measure tools-add ruler/add protactor |
I'll think about this, currently we have nothing like this. KiCad has also something like this, but it measures only temporary, it is not saved. |
The open source project openboard has such tools (ruler, triangle, protractor, compass) as well, see http://openboard.ch/. Moreover openoard is written in c++, hence it may be easier to make use of it. |
Two main problems blocking this feature:
Either way, we cannot implement image rotation until the next major release (1.1.0). However, if we choose to do so, we should
|
We also should consider to make a XournalSelection derive from Element. So a user can do the same translations to the Selection |
Yes, the way to do this is to do the transform when drawing the image. I'd suggest not just for image but to eventually be used for non-destructive transforms for all types of Elements.
I don't believe this would involve a lot of work... but I could be wrong ;) |
Any news on this? Image rotation is very much needed :-) |
Unfortunately that's not something we have been working on. Thanks for the reminder. |
Rotation and flipping are immensely useful operations. Please make it happen! |
+1 I often take photos of various setups, test devices, etc, and want to put them in the notebook and annotate them, in between analyses, writeups, etc. Not being able to rotate them makes xournal++ unusable for that purpose, for the following reason: While I could rotate photos in my phone, which is what I usually use to take the photos, I often do not know ahead of time how I want to rotate, crop, etc. So fixing pictures means interrupting my note-taking, getting my phone, finding the photo, rotating it, and reloading it into xournal++. Since I do this a lot when working in the lab, the time cost is prohibitive. Often, the phone makes it worse because it auto-rotates things and I can never be sure of it's true orientation. Please give this another look, thanks! |
I use Xounal on a tablet-pc and sometimes make screenshots on landscape because it's easier and then need it on a portrait written page. Rotation could be VERY usefull :D |
Currently rotating images by pasting them into Inkscape, rotating them there, copying them again to paste them into GIMP just to copy them immediately again so I can paste them into Xournal++ I wonder why neither rotating directly (nor pasting from Inkscape directly) works. |
Tldr: no one has contributed it yet. Xournalpp is developed by the community and we never had anyone who is paying us. Therefore we only can spend time at weekends or if we neglect our obligations. Even then it is hard to spend time on the project. Currently we are pretty occupied by all those PRS we have to review that we barely can improve a feature by ourselves. We also have to modernize the code, that we can port to gtk4. So that the project can be kept alive when the gtk3 support is ditched. |
Thanks for your work and dedication to this project. Although I still think it's strange that this seemingly default and mundane functionality hasn't been implemented in over 4 years whereas more sophisticated nice tools like the set square and precise pdf text highlighting have been implemented recently. I also miss the functionality of a context menu allowing to put images in the background quickly (without resorting to layers) and thus just opened an issue -> #4950. Lack of such mundane quality of life things can add up to be quite annoying in day to day use. |
While you are right that rotating images is more basic than a set square or pdf text highlighting, there are two reasons that the latter got implemented first:
|
@Badhunter0303 You're talking about rotating strokes. That was always possible. The plugin is about rotating images. |
@rolandlo oh |
Any progress on this? |
Not to pile on, but I also just want to show interest in this feature. Would be very useful. |
It's a feature we also would like to see, but it seems that currently no one in the core team has much time to spare. What I can offer is, that I or the other ones in the team help someone to implement this. |
I may upload a draft PR at the end of Eastern, to enable general rotation support. But there has still a lot of work to be done:
Possible benefits:
|
@Febbe, if it helps, I worked a bit on refactoring the EditSelection business here: https://github.com/bhennion/xournalpp/tree/pr/Sel2 |
Yes, we actually had a similar approach for different things, I also introduced a transformation matrix here: https://github.com/Febbe/xournalpp/tree/transformable_elements |
This PR tends to implement one of the most desired enhancements (xournalpp#918), to rotate Images, Text and Latex. For this, I replaced every explicit position, scale and rotation state in the Elements with affine transformations. They are never applied to the data, instead the affine transformation is handled to cairo, which itself applies an affine transformation anyway. This has the advantage, - that we get rotation support out of the box via cairo and - that we can reduce computing power, since only one transformation is applied to each Shape - when cairo drawing uses hardware acceleration, strokes now also will use hardware acceleration for the transformation
Can't express enough how much we all appreciate your talent and volunteer work and wanted to add my vote for the Xournal++ IMAGE ROTATION feature. Having a rotation handle and/or a 360 degree rotational dial allowing for fine tuning would be so welcome. LibreOffice Draw is an option but it many times clobbers the PDF content in the process, making it a bad alternative. Thanks for the consideration! |
https://drive.google.com/file/d/1l94pBaPIhii599Tk5xJOKxAgqzah5Z79/view?usp=sharing
I'm a math teacher. I'm trying to use the ruler and the protractor in Xournal++ adding two images. How do I rotate the image of the ruler around the top left corner and the image of the protractor around his center to measure the angle? Thanks!
The text was updated successfully, but these errors were encountered: