aboutsummaryrefslogtreecommitdiff
path: root/fiv-io.h
Commit message (Collapse)AuthorAgeFilesLines
* Use Little CMS's alpha premultiplication featurePřemysl Eric Janouch2023-06-061-3/+1
| | | | And do a little cleanup.
* Move FivIoModel to its own compilation unitPřemysl Eric Janouch2023-05-281-42/+0
|
* Deduplicate file information structuresPřemysl Eric Janouch2023-04-141-10/+10
|
* Check filesize when retrieving thumbnailsPřemysl Eric Janouch2023-04-141-0/+1
| | | | | In particular, this handles screenshots from Rigol oscilloscopes, which reuse the same name series with the same file modification time.
* Add optional browser filename labelsPřemysl Eric Janouch2023-04-111-0/+5
|
* Add directory tree traversal functionalityPřemysl Eric Janouch2023-04-051-0/+5
| | | | Thus far merely bound to the [ and ] keys in the browser.
* Integrate online reverse image searchPřemysl Eric Janouch2023-03-151-1/+3
| | | | | | | | | | | This makes use of our image processing capabilities in order to turn arbitrary image files into normalized thumbnails, upload them to a temporary host, and pass the resulting URI to a search provider. In future, fiv should ideally run the upload itself, so that its status and any errors are obvious to the user, as well as to get rid of the script's dependency on jq.
* Update a commentPřemysl Eric Janouch2022-10-041-1/+1
|
* Center view rotations/flipsPřemysl Eric Janouch2022-10-031-1/+2
|
* Support opening collections of filesPřemysl Eric Janouch2022-08-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement a process-local VFS to enable grouping together arbitrary URIs passed via program arguments, DnD, or the file open dialog. This VFS contains FivCollectionFile objects, which act as "simple" proxies over arbitrary GFiles. Their true URIs may be retrieved through the "standard::target-uri" attribute, in a similar way to GVfs's "recent" and "trash" backends. (The main reason we proxy rather than just hackishly return foreign GFiles from the VFS is that loading them would switch the current directory, and break iteration as a result. We could also keep the collection outside of GVfs, but that would result in considerable special-casing, and the author wouldn't gain intimate knowledge of GIO.) There is no perceived need to keep old collections when opening new ones, so we simply change and reload the contents when needed. Similarly, there is no intention to make the VFS writeable. The process-locality of this and other URI schemes has proven to be rather annoying when passing files to other applications, however most of the resulting complexity appears to be essential rather than accidental. Note that the GTK+ file chooser widget is retarded, and doesn't recognize URIs that lack the authority part in the location bar.
* Add flags to the serialization protocolPřemysl Eric Janouch2022-06-081-2/+4
| | | | | | | | | 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.
* Clean upPřemysl Eric Janouch2022-06-051-5/+5
| | | | Use gchar when memory is allocated through GLib.
* Get rid of our spng dependencyPřemysl Eric Janouch2022-06-041-0/+4
| | | | Thumbnails can be properly loaded using Wuffs now.
* Use the model's mtime for validating thumbnailsPřemysl Eric Janouch2022-06-041-2/+2
| | | | | Saves a syscall, generalizes fiv_thumbnail_lookup(), wastes a tiny bit of memory per entry.
* Expose the mtime of the model's entriesPřemysl Eric Janouch2022-06-041-2/+8
|
* Make thumbnailers pass back raw imagesPřemysl Eric Janouch2022-02-201-0/+5
|
* Redirect warnings to the info barPřemysl Eric Janouch2022-01-241-5/+13
| | | | | | And speed up thumbnailing of animated images while at it. Also, fix thumbnailing SVGs with external links.
* Add backend for accurate SVG scalingPřemysl Eric Janouch2022-01-231-0/+10
|
* Update a commentPřemysl Eric Janouch2022-01-221-1/+1
|
* Fix a compiler warningPřemysl Eric Janouch2022-01-131-2/+1
|
* Fix SVG thumbnailingPřemysl Eric Janouch2022-01-071-6/+5
| | | | They're not loaded as image surfaces.
* Add UI for sort order settingsPřemysl Eric Janouch2022-01-051-0/+9
|
* Use a unified filesystem modelPřemysl Eric Janouch2022-01-051-2/+15
| | | | | | This removes some duplication of effort. So far, sorting adjustments are not exposed in the UI.
* Convert all loading to use GFilePřemysl Eric Janouch2021-12-301-2/+2
| | | | Now we're able to make use of GVfs, with some caveats.
* Hardcode Exif orientation in thumbnailsPřemysl Eric Janouch2021-12-281-0/+8
|
* Move thumbnails into their own source filePřemysl Eric Janouch2021-12-281-48/+3
| | | | And clean up identifiers.
* Load back wide thumbnail metadataPřemysl Eric Janouch2021-12-281-0/+2
|
* Save thumbnails lossily, with metadataPřemysl Eric Janouch2021-12-281-0/+7
|
* Clean upPřemysl Eric Janouch2021-12-281-0/+4
|
* Avoid producing thumbnails of thumbnailsPřemysl Eric Janouch2021-12-281-0/+3
|
* Try to regenerate low quality thumbnailsPřemysl Eric Janouch2021-12-281-0/+3
|
* Implement trivial wide thumbnail productionPřemysl Eric Janouch2021-12-271-1/+7
| | | | Also make libwebp a required dependency.
* Avoid double CM in saved WebPsPřemysl Eric Janouch2021-12-261-1/+1
|
* Colour manage all WebP formsPřemysl Eric Janouch2021-12-261-0/+1
| | | | It could be done better, but at least it works at all.
* Use Little CMS for JPEG colour managementPřemysl Eric Janouch2021-12-241-2/+13
|
* Integrate jpeg-quantsmoothPřemysl Eric Janouch2021-12-221-3/+4
| | | | Also, don't pointlessly store JPEGs in an ARGB Cairo surface.
* Adopt shorter identifiersPřemysl Eric Janouch2021-12-181-0/+122
Also, slightly reformat the source code according to clang-format.