Commit Graph

58 Commits

Author SHA1 Message Date
Přemysl Eric Janouch a9a9d69a92
Add missing array sentinel value 2022-07-19 16:08:53 +02:00
Přemysl Eric Janouch 07aa11d78d
Use GPatternSpec rather than fnmatch()
Fixing a portability issue on Windows, where we still aim to use
the shared-mime-info database.
2022-07-14 10:08:15 +02:00
Přemysl Eric Janouch 930744e165
Add flags to the serialization protocol
It still needs no versioning, as it's not really used by anyone.

An alternative method of passing a "low-quality" flag would be
perusing fiv_thumbnail_key_lq from fiv-thumbnail.c, which would
create a circular dependency, unless fiv_io_{de,}serialize*()
were moved to fiv-thumbnail.c.
2022-06-08 02:51:54 +02:00
Přemysl Eric Janouch 4ca8825e02
Clean up
Use gchar when memory is allocated through GLib.
2022-06-05 13:30:53 +02:00
Přemysl Eric Janouch 024b5117b4
Get rid of our spng dependency
Thumbnails can be properly loaded using Wuffs now.
2022-06-04 23:14:15 +02:00
Přemysl Eric Janouch ac6b606ccc
Bump Wuffs, support partial PNGs through it 2022-06-04 19:19:16 +02:00
Přemysl Eric Janouch 3ddb0cf205
Expose the mtime of the model's entries 2022-06-04 14:50:56 +02:00
Přemysl Eric Janouch efc13db66e
Plug two memory leaks 2022-06-04 01:28:44 +02:00
Přemysl Eric Janouch 5c34a6846a
Fix loading huge JPEGs
They fell back to gdk-pixbuf, then misrendered in the thumbnailer,
and crashed the program when loaded directly.

The second best we can do is scale them down, right after tiling,
which is a complex feature to add.
2022-03-09 18:04:36 +01:00
Přemysl Eric Janouch 04ec292caf
Make thumbnailers pass back raw images 2022-02-20 21:14:33 +01:00
Přemysl Eric Janouch 6c748439ed
Use natural sort order
This is exposed in GLib through collate key construction.
2022-02-20 12:07:41 +01:00
Přemysl Eric Janouch 3ae8be8348
Add a TODO comment
WebP can't save all JPEGs, because WEBP_MAX_DIMENSION is only 16383.
2022-02-18 19:54:05 +01:00
Přemysl Eric Janouch 03d1798e23
Add a missing header file include 2022-02-14 06:55:37 +01:00
Přemysl Eric Janouch 381e5f57c7
Add TGA to the list of supported media types 2022-01-25 05:16:31 +01:00
Přemysl Eric Janouch 788485d81e
Redirect warnings to the info bar
And speed up thumbnailing of animated images while at it.

Also, fix thumbnailing SVGs with external links.
2022-01-24 05:48:13 +01:00
Přemysl Eric Janouch 098895bfd9
Remove SVG debugging tools
I already know how librsvg over Cairo behaves.
2022-01-23 04:15:48 +01:00
Přemysl Eric Janouch 562e140a1e
Add backend for accurate SVG scaling 2022-01-23 04:12:10 +01:00
Přemysl Eric Janouch b71d5dff57
Make truncated WebP parts always transparent 2022-01-23 00:27:20 +01:00
Přemysl Eric Janouch 3796f56e81
Load even partial WebP images 2022-01-22 22:45:35 +01:00
Přemysl Eric Janouch 0a11abd3fe
Reorder code 2022-01-22 21:38:00 +01:00
Přemysl Eric Janouch 78faf438a5
Improve WebP error reporting 2022-01-22 21:31:16 +01:00
Přemysl Eric Janouch f2eb7621b4
Bump Wuffs, add TGA support through it 2022-01-22 21:02:56 +01:00
Přemysl Eric Janouch 8877e17108
Default to gdk-pixbuf even for Wuffs formats 2022-01-22 21:02:56 +01:00
Přemysl Eric Janouch 686d45553b
Plug a corner-case memory leak, fix range checks 2022-01-21 19:03:05 +01:00
Přemysl Eric Janouch 4ba1d85363
Add preliminary support for resvg
It claims better SVG support, but it sucks for a plethora of reasons.
2022-01-21 09:14:19 +01:00
Přemysl Eric Janouch 45238d78cd
Mesonize JPEG Quant Smooth
Now SIMD works on amd64, although the build remains questionable,
because it assumes that all of its compiler flags will work.

This way we lose an uncomfortable git submodule.

Also, add Meson subprojects to .gitignore.
2022-01-19 01:11:47 +01:00
Přemysl Eric Janouch 222ba6a060
Add a comment about HDR PNG 2022-01-13 21:09:16 +01:00
Přemysl Eric Janouch 77de7efc55
Bump Wuffs, clean up image loading 2022-01-08 08:04:58 +01:00
Přemysl Eric Janouch b973d323ba
Fix GIF decoding for certain files
The handling is not perfect yet, but it should be fine enough.
2022-01-08 05:34:01 +01:00
Přemysl Eric Janouch 3274b64f5a
Fix SVG thumbnailing
They're not loaded as image surfaces.
2022-01-07 09:43:28 +01:00
Přemysl Eric Janouch 68e786b4e8
Fix build with JPEG-QS but without lcms2 2022-01-06 06:15:08 +01:00
Přemysl Eric Janouch 9a1396b91f
Update comments 2022-01-05 12:07:05 +01:00
Přemysl Eric Janouch 5abf6a719f
Add UI for sort order settings 2022-01-05 10:54:36 +01:00
Přemysl Eric Janouch b935b0baf8
Use a unified filesystem model
This removes some duplication of effort.

So far, sorting adjustments are not exposed in the UI.
2022-01-05 03:48:22 +01:00
Přemysl Eric Janouch 380ddd540b
Convert all loading to use GFile
Now we're able to make use of GVfs, with some caveats.
2021-12-30 22:32:29 +01:00
Přemysl Eric Janouch 8b232dc444
Add pointless likelihood macros 2021-12-30 21:49:00 +01:00
Přemysl Eric Janouch 4832474c5f
Partially colour-manage TIFFs 2021-12-29 02:46:40 +01:00
Přemysl Eric Janouch 98bdab443a
Hardcode Exif orientation in thumbnails 2021-12-28 23:29:58 +01:00
Přemysl Eric Janouch bf47782f0a
Move thumbnails into their own source file
And clean up identifiers.
2021-12-28 20:18:25 +01:00
Přemysl Eric Janouch c1af556751
Load back wide thumbnail metadata 2021-12-28 19:59:31 +01:00
Přemysl Eric Janouch 2d86ffed34
Save thumbnails lossily, with metadata 2021-12-28 18:54:27 +01:00
Přemysl Eric Janouch aaa7cb93c3
Fix transparent gdk-pixbuf loading 2021-12-28 02:07:42 +01:00
Přemysl Eric Janouch d4b51f07b5
Avoid unused alpha channels when rescaling 2021-12-28 02:07:42 +01:00
Přemysl Eric Janouch 720464327c
Clean up 2021-12-28 02:07:42 +01:00
Přemysl Eric Janouch ad1ff06aff
Avoid producing thumbnails of thumbnails 2021-12-28 02:07:42 +01:00
Přemysl Eric Janouch af2eb411d9
Try to regenerate low quality thumbnails 2021-12-28 02:07:42 +01:00
Přemysl Eric Janouch 336053f24d
Implement trivial wide thumbnail production
Also make libwebp a required dependency.
2021-12-27 21:51:01 +01:00
Přemysl Eric Janouch 2f993502fc
Make use of gAMA and sRGB PNG chunks
Neither EoG nor gThumb handle this correctly.
2021-12-26 03:25:38 +01:00
Přemysl Eric Janouch e5b1a1861c
Avoid double CM in saved WebPs 2021-12-26 02:02:57 +01:00
Přemysl Eric Janouch e37acf365a
Colour manage all WebP forms
It could be done better, but at least it works at all.
2021-12-26 01:14:27 +01:00