-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Support displaying cropped images with focal points #576
Comments
Yup, that's issue #173 which also has some technical reference details ;) |
I'll split them into two issues, this one about displaying them and the other one about setting them since they are different implementation wise. The main issue with implementing this is that Gtk.Picture is sealed (cannot be subclassed) so the only way to change the way the image is displayed (outside of the predefined options (cover, content fit etc)) is by re-creating Gtk.Picture from scratch (or at least that's my understanding of the situation) |
Might be worth filing a GTK issue asking if this could be in scope to be added to GtkPicture in the future? |
I'd suggest retitling this ticket to "Support displaying cropped images with focal points" to avoid confusion with the editing part (#173). |
On the official web app you can set a focal point for images, which is cool to draw attention to specific parts of the image when it's cropped (e.g. in this case the top part is more interesting than the center):
The text was updated successfully, but these errors were encountered: