Sophie Herold
e710419a22
decoder: Add basic color profile support
...
This only covers 8bit RGB(A) JPEG, PNG, and HEIF.
Should only be a temporary solution until GTK supports
color profiles.
Closes #36
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/172 >
2023-04-18 21:22:09 +02:00
Sophie Herold
e8aa5451c3
decoder: Avoid unwraps and report issues to UI
...
Those are mostly cases that should never occur.
But especially for rare erros it can be helpful to
directly display them in the UI.
2023-04-18 17:57:41 +00:00
Sophie Herold
fad8bb7939
decoder: Use GFile instead of PathBuf
...
This allows to show images from locations that don't
have a representation with path.
This also works around not being able to read files in trash:///
Closes #56
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/174 >
2023-04-18 16:22:49 +00:00
Sophie Herold
f8cc9f5f84
i18n: Use gettext function instead of wrapper
...
No need to deviate from the default here.
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/170 >
2023-04-12 12:58:40 +00:00
Sophie Herold
ca672552be
decoder: Bring back support for still WebP images
...
We manually have to use the static decoder instead of
the frames api as for PNG.
Issue #115
2023-04-06 21:08:23 +00:00
Sophie Herold
1b18486826
image: Move background color guess to other thread
...
Also, skip it completely for JPEG and BMP
Issue #111
2023-04-04 22:13:36 +00:00
Sophie Herold
67207bb215
image: Use mipmaps for zoom-out and NN for zoom-in
...
Before we always used "linear" filtering. This gave
a harsh image with moire patterns when zooming out
and washed out images when zooming in.
Closes #68 , #71
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/125 >
2023-03-25 15:32:31 +00:00
Sophie Herold
f33c4bd470
decoder: Support animated formats (GIF, WEBP, APNG)
...
Closes #27
2023-03-18 20:23:08 +00:00
Sophie Herold
b8d5f833f3
decoder: Cleanup and better image format detection
...
Closes #97
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/140 >
2023-03-14 03:59:21 +01:00
Sophie Herold
42d558d22f
propertiesView: Use image dimensions from decoder
...
This also shows the units for SVG dimensions if not pixels.
Issue #43
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/136 >
2023-03-14 02:31:07 +00:00
Sophie Herold
a2a9b4134b
propertiesView: Use decoder format
...
Use the format that we actually used when decoding.
The mime type is usually derived from the file extension
which might not always be correct.
Issue #43
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/132 >
2023-03-14 00:50:40 +00:00
Sophie Herold
ddf4b8c2fa
decoder: Load HEIC/x265 as plugin
...
Closes #85
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/123 >
2023-03-13 23:12:07 +00:00
Sophie Herold
a0ce234946
image: Limit SVG zoom to RSVG limits
...
See <https://gitlab.gnome.org/GNOME/librsvg/-/issues/938 >
for details about the problem.
Closes #88
2023-03-11 00:06:51 +00:00
Sophie Herold
f80ec7db56
decoder: Use image-rs, libheif-rs, librsvg
...
This adds proper support for a lot of image formats including SVGs.
It will be the basis for many features to come. The technical core
is an asynchronous renderer that can arrange textures in smaller tiles
which might be generated on demand.
Closes #34 , #40 , #41 , #49
Basis for fixing the following issues #7 , #27 , #36 , #43 , #68 , #71
2023-03-04 21:48:51 -05:00