aboutsummaryrefslogtreecommitdiff
path: root/fiv-thumbnail.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix LibRaw 0.20 compatibilityPřemysl Eric Janouch2024-03-281-1/+1
|
* Prepare for parallelized colour managementPřemysl Eric Janouch2024-01-281-3/+7
| | | | | | | | | This rewrite is more or less necessary for: - colour-managed browser thumbnails, - asynchronous image loading, - turning fiv-io into a reusable library. Little CMS has a fairly terrible API in this regard.
* Move colour management to its own compilation unitPřemysl Eric Janouch2024-01-261-1/+1
| | | | | | Also make it apparent that CMM profiles are pointer types. This isn't all that pretty, but it's a necessary first step.
* Colour-manage SVGsPřemysl Eric Janouch2023-07-091-1/+6
|
* Silence a compiler warningPřemysl Eric Janouch2023-07-031-1/+1
|
* Use LocalAppData for thumbnails on WindowsPřemysl Eric Janouch2023-06-261-0/+9
|
* Stop abusing Cairo user data, part 2Přemysl Eric Janouch2023-06-241-99/+108
| | | | | With the shift from cairo_surface_t, we've lost our ability to directly render vector surfaces, but it doesn't matter.
* Stop abusing Cairo user data, part 1Přemysl Eric Janouch2023-06-241-4/+4
| | | | This commit temporarily breaks multi-page images and animations.
* Fix thumbnail extractionPřemysl Eric Janouch2023-06-131-2/+3
|
* Update commentsPřemysl Eric Janouch2023-06-091-3/+4
|
* Improve LibRaw thumbnail choicePřemysl Eric Janouch2023-06-091-49/+152
| | | | Make use of LibRaw 0.21.0's extended thumbnail API.
* Optimize thumbnail extractionPřemysl Eric Janouch2023-06-081-12/+8
| | | | Don't go over the same data twice.
* Refactor fiv_thumbnail_extract()Přemysl Eric Janouch2023-06-081-76/+108
|
* Try not to thumbnail FIFOsPřemysl Eric Janouch2023-05-211-0/+8
| | | | | | Unless there is a writer, this may block forever. And if there is one, we're somewhat likely to break something.
* Avoid use of NULL picture data pointersPřemysl Eric Janouch2023-05-211-0/+12
| | | | | The sanitizer would scream, and LibRaw would rather confusingly return I/O errors.
* Fix raw image thumbnailing speed regressionPřemysl Eric Janouch2023-05-211-2/+32
| | | | | LibRaw started returning the largest possible thumbnail, which in the case of NEFs may be a nearly full-scale image.
* Check filesize when retrieving thumbnailsPřemysl Eric Janouch2023-04-141-34/+59
| | | | | 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-2/+25
| | | | | | | | | | | 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.
* Fix LibRaw 0.21.0 buildPřemysl Eric Janouch2022-12-231-0/+3
|
* Use cleaner paths when looking up thumbnailsPřemysl Eric Janouch2022-08-091-4/+4
|
* Do produce thumbnails of thumbnails, but in memoryPřemysl Eric Janouch2022-08-091-2/+27
|
* 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.
* Fix the remaining Windows build errorPřemysl Eric Janouch2022-07-231-5/+1
| | | | | | | | Linux has st_mtim (and an st_mtime macro), macOS has st_mtimespec (and an st_mtime macro), Windows has just st_mtime. GFileInfo would be another option, though it seems unnecessary.
* Decode bitmap thumbnails through LibRaw as wellPřemysl Eric Janouch2022-06-101-1/+72
|
* Downscale embedded thumbnails within minionsPřemysl Eric Janouch2022-06-081-63/+70
| | | | Otherwise the UI would become unresponsive during loading.
* Add a command line option to extract thumbnailsPřemysl Eric Janouch2022-06-081-44/+110
| | | | | Only use LibRaw for now, which probably has the most impact using the least amount of effort.
* Clean upPřemysl Eric Janouch2022-06-051-3/+3
| | | | Use gchar when memory is allocated through GLib.
* Get rid of our spng dependencyPřemysl Eric Janouch2022-06-041-125/+19
| | | | Thumbnails can be properly loaded using Wuffs now.
* Bump Wuffs, support partial PNGs through itPřemysl Eric Janouch2022-06-041-0/+2
|
* Use the model's mtime for validating thumbnailsPřemysl Eric Janouch2022-06-041-11/+3
| | | | | Saves a syscall, generalizes fiv_thumbnail_lookup(), wastes a tiny bit of memory per entry.
* Fix loading huge JPEGsPřemysl Eric Janouch2022-03-091-0/+9
| | | | | | | | 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.
* Clean upPřemysl Eric Janouch2022-02-211-13/+8
|
* Try to thumbnail everything we canPřemysl Eric Janouch2022-02-211-25/+75
|
* Make thumbnailers pass back raw imagesPřemysl Eric Janouch2022-02-201-2/+7
|
* Implement wide thumbnail cache invalidationPřemysl Eric Janouch2022-02-201-1/+178
|
* Redirect warnings to the info barPřemysl Eric Janouch2022-01-241-8/+18
| | | | | | And speed up thumbnailing of animated images while at it. Also, fix thumbnailing SVGs with external links.
* Produce properly scaled SVG thumbnailsPřemysl Eric Janouch2022-01-231-0/+10
|
* Bump more copyright yearsPřemysl Eric Janouch2022-01-071-1/+1
|
* Fix SVG thumbnailingPřemysl Eric Janouch2022-01-071-12/+16
| | | | They're not loaded as image surfaces.
* Mildly improve Ubuntu 20.04 compatibilityPřemysl Eric Janouch2022-01-061-0/+1
|
* Minor URL-related fix-upsPřemysl Eric Janouch2021-12-311-1/+4
|
* Convert all loading to use GFilePřemysl Eric Janouch2021-12-301-14/+10
| | | | Now we're able to make use of GVfs, with some caveats.
* Check wide thumbnail metadataPřemysl Eric Janouch2021-12-291-12/+70
|
* Hardcode Exif orientation in thumbnailsPřemysl Eric Janouch2021-12-281-14/+22
|
* Move thumbnails into their own source filePřemysl Eric Janouch2021-12-281-0/+494
And clean up identifiers.