aboutsummaryrefslogtreecommitdiff
path: root/fiv-thumbnail.h
Commit message (Collapse)AuthorAgeFilesLines
* Check filesize when retrieving thumbnailsPřemysl Eric Janouch2023-04-141-2/+2
| | | | | In particular, this handles screenshots from Rigol oscilloscopes, which reuse the same name series with the same file modification time.
* Integrate online reverse image searchPřemysl Eric Janouch2023-03-151-1/+5
| | | | | | | | | | | 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.
* Do produce thumbnails of thumbnails, but in memoryPřemysl Eric Janouch2022-08-091-3/+0
|
* Support opening collections of filesPřemysl Eric Janouch2022-08-081-1/+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.
* Downscale embedded thumbnails within minionsPřemysl Eric Janouch2022-06-081-1/+3
| | | | Otherwise the UI would become unresponsive during loading.
* Add a command line option to extract thumbnailsPřemysl Eric Janouch2022-06-081-3/+6
| | | | | Only use LibRaw for now, which probably has the most impact using the least amount of effort.
* Add flags to the serialization protocolPřemysl Eric Janouch2022-06-081-2/+2
| | | | | | | | | 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.
* Use the model's mtime for validating thumbnailsPřemysl Eric Janouch2022-06-041-1/+2
| | | | | Saves a syscall, generalizes fiv_thumbnail_lookup(), wastes a tiny bit of memory per entry.
* Make thumbnailers pass back raw imagesPřemysl Eric Janouch2022-02-201-2/+3
|
* Implement wide thumbnail cache invalidationPřemysl Eric Janouch2022-02-201-0/+3
|
* Bump more copyright yearsPřemysl Eric Janouch2022-01-071-1/+1
|
* Move thumbnails into their own source filePřemysl Eric Janouch2021-12-281-0/+64
And clean up identifiers.