Replies: 5 comments 12 replies
-
Update (use the "edited" button):
|
Beta Was this translation helpful? Give feedback.
-
About app-specific image formats. What I want to do is to differentiate between image formats that were primarily designed for viewing and those that are primarily intended for creation and design. Examples:
I hope what I want is a bit clearer. |
Beta Was this translation helpful? Give feedback.
-
I don't think that's how it mostly works in practice. The libraries for image viewing I am familiar with are GdkPixbuf, Libheif, and Glycin (which I wrote.) All support adding support for more formats via Flatpak extensions. Maybe that would work if the extensions bring files that are also checked by the portal. |
Beta Was this translation helpful? Give feedback.
-
WebP, APNG, GIF, and JPEG XL can be animated without being part of the mime type. So I don't think that differentiation is practical and it also doesn't seem to be relevant later anywhere. However, I think it's only a question of time until someone wants to build a viewer that includes images and videos when browsing as it is the standard on phones. So I think video should be considered in this proposal as well. |
Beta Was this translation helpful? Give feedback.
-
Closed in favor of #1271. |
Beta Was this translation helpful? Give feedback.
-
I need to be developed 🙂
Requirements
Portal
App Developers
Desktop Containment Framework (Flatpak, Snap, Other)
The desktop containment framework (DCF) must validate the image types/extensions defined in the app reference file. When the app is installed, the DCF must consider as valid the types that are supported by the portal; valid types are remembered. When the app is updated, the DCF validates the types supported by the app, compares them to previous ones, and then marks which ones are new. Optionally, the DCF may also mark which types have been removed. And so on.
Note that the DCF must read supported formats from portal files. Keeping supported formats in the portal allows to receive updates for new supported formats regardless of the DCF used.
Functioning
Note: The following text is for understanding purposes only. Things can be done differently if wanted; only the end results are important.
Checks and their values:
To begin, the user selects an image file to open via the file chooser or file manager; the file is not returned to the app. Then the portal performs check (1). If check (1) is "no", then only the selected image file is returned to the app. If check (1) is "yes", then the portal performs check (2).
If check (2) is "no", only the selected image is returned to the app. However, if check (2) is "yes", the portal performs checks (3) and (4) at the same time and acts according to the following values of the checks:
Once the app is no longer running when it has been closed, the portal removes access to neighboring images.
"never" Access For Specific Folders
Instead of having "confirm" access, one idea is to have the option to add folders from which neighboring images will never be accessed when permission is set to "automatic" access.
A Simpler Portal
The following suggestions should help simplify the portal. One, some, or all may be used. A simpler version may be a good candidate for a first version of the portal.
No "confirm" Access Permission
Just do not implement the "confirm" access permission.
No Support For Source Image Formats
Such image formats are editable by being designed for this purpose. People using such formats have the app that goes with them. Additionally and generally, they are not shared as is, except for editing; they are shared in a common image format for viewing purposes. As such, it is perhaps reasonable to limit this portal to still and animated images primarily intended for viewing.
No Handling of Image Format Changes
Changes to the portal:
Doing this means:
Mockup
See https://gitlab.gnome.org/Teams/Design/whiteboards/-/issues/221#note_1960562.
Questions
Beta Was this translation helpful? Give feedback.
All reactions