summaryrefslogtreecommitdiffstats
path: root/thumbs.c
AgeCommit message (Collapse)Author
2019-01-23Align compile-time color options with X resource colorsBert Münnich
Two colors are more than enough!
2018-07-30Respect updated path format when cleaning cacheKacper Gutowski
Since d8114e8 the file name is used for caching as-is without adding .jpg at the end, but sxiv -c still expected old format causing it to remove all fresh thumbnails.
2018-07-30Don't skip dot files when cleaning cacheKacper Gutowski
2017-11-23Reject text files resembling TGA imagesBert Münnich
Fixes issue #295 The imlib2 TGA loader returns an imlib image handle without any actual data when given a text file like this: T Content-Type: application/javascript Content-Length: 3836 Last-Modified: Wed, 23 Sep 2015 12:25:47 GMT Etag: "56029a4b-efc" Expires: Sat, 20 Aug 2016 15:14:33 GMT Cache-Control: max-age=604800, public Accept-Ranges: bytes Fortunately, `imlib_image_get_data()` returns NULL in this case, so that we can use it as an additional check when opening files.
2017-10-16One header file for type definitions and function declarationsBert Münnich
2017-09-08Add -p flag to disable writing of cache and temporary filesAntti Korpi
Closes #285.
2016-12-28Fix unused-variable warnings in conditionally compiled codeBert Münnich
2016-10-20Only open regular files; fixes issue #252Bert Münnich
2016-09-28Allow opening directories non-recursivelyParide Legovini
2016-08-06Use Xft for font loading and text drawingBert Münnich
2015-12-20Build-time option for default thumbnail size; fixes issue #207Bert Münnich
2015-10-28Simplified r_mkdir()Bert Münnich
2015-10-28Revised error handlingBert Münnich
- Functions warn() and die() replaced by GNU-like error(3) function - Register cleanup() with atexit(3) - Functions called by cleanup() are marked with CLEANUP and are not allowed to call exit(3)
2015-10-28Prefix safe allocation functions with 'e' instead of 's_'Bert Münnich
2015-10-28Removed feature test macro definitions from source filesBert Münnich
2015-10-28Removed overcautious parameter checksBert Münnich
2015-07-22Thumbnail cache file format depending on existance of alpha layerBert Münnich
Use PNG if image has alpha layer, JPG if not. Fixes issue #209
2015-01-04Cache out of view thumbnails in the backgroundBert Münnich
2015-01-04Use bit-field for boolean flags in fileinfo structBert Münnich
2014-11-27Enforced thumbnail reloading after key handlerBert Münnich
2014-11-27Limit thumbnail selection border width to 4pxBert Münnich
2014-10-31Do not cache thumbnails, which are smaller than the maximum sizeBert Münnich
2014-10-31Discard cached & EXIF thumbnails, which are smaller than the configured ↵Bert Münnich
maximum size
2014-10-31Fixed leakage of resources allocated by EXIF libraryBert Münnich
2014-10-29Fixed segfault when run with -cBert Münnich
2014-10-24Do not print could-not-open-warnings for files found by directory traversalBert Münnich
2014-09-30Unified file count variable for image & thumbnail modeBert Münnich
2014-09-29Set JPEG quality for thumbnail cache filesBert Münnich
2014-09-29Fixed thumbnail creation for files with big aspect ratio factor; fixes issue ↵Bert Münnich
#175
2014-09-29Scale thumbnail selection border width with thumbnail sizeBert Münnich
2014-09-29Moved thumbnail sizes array to config.def.hBert Münnich
2014-09-29Refactored thumbnail size dependent calculationsBert Münnich
2014-09-28Added thumbnail zooming...Bert Münnich
- Key mappings +/- are now general commands - Use JPG as thumbnail cache file format instead of PNG - Fixes issue #161
2014-09-27Changed image mark in thumbnail view to small rectangleBert Münnich
2014-09-26Revised thumbnail loading...Bert Münnich
- Only load the thumbnails that are currently visible in the window - Unload thumbnails that are leaving the visible area - Much less memory needed, but scrolling is now slower - This also unintentionally fixes issue #86
2014-08-22Bug #165: Deletion of unnecessary null pointer checksMarkus Elfring
The function "free" performs input parameter validation. http://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html It is therefore not needed to check a passed pointer before this function call. A corresponding update suggestion was generated by the software "Coccinelle" from the following semantic patch approach. http://coccinelle.lip6.fr/ @Remove_unnecessary_pointer_checks1@ expression x; @@ -if (x != \(0 \| NULL\)) free(x); @Remove_unnecessary_pointer_checks2@ expression x; @@ -if (x != \(0 \| NULL\)) { free(x); x = \(0 \| NULL\); -} @Remove_unnecessary_pointer_checks3@ expression a, b; @@ -if (a != \(0 \| NULL\) && b != \(0 \| NULL\)) +if (a) free(b); @Remove_unnecessary_pointer_checks4@ expression a, b; @@ -if (a != \(0 \| NULL\) && b != \(0 \| NULL\)) { +if (a) { free(b); b = \(0 \| NULL\); } Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2014-08-18Beautified thumbnail marks and selection borderBert Münnich
2014-08-18Further simplified thumbnail marksBert Münnich
2014-08-17Simplified thumbnail selection and marksBert Münnich
2014-08-16Fixed wrong thumbnail-to-file mappings caused by file deletionsBert Münnich
2014-08-16Pass marked files to external key handler in thumbnail mode; fixes issue #135Bert Münnich
2014-08-16Unified file index variable for image & thumbnail modeBert Münnich
2014-08-16Generalized thumbnail loading, allows easier reloading of thumbnails later onBert Münnich
2014-07-28Overhauled window drawing, yet again; fixes issue #155Bert Münnich
- Buffer for window content is bigger than the window, minimizes artifacts when window is resized - Back to using XSetWindowBackgroundPixmap() instead of XCopyArea(), no need to handle exposure events; X server can show gray background directly after resize event before sxiv redraws the window contents
2014-06-10Create thumbnail cache dir automaticallyBert Münnich
2014-06-10Small fix for thumbnail croppingBert Münnich
2014-06-09Use thumbnails in EXIF tags; requirement for libexif is backBert Münnich
2014-04-06Use a checkerboard background for alpha layer; fixes issue #138Bert Münnich
2014-01-11Adhere to XDG Base Directory Specification; fixes issue #124Bert Münnich
2013-12-13Fixed Imlib file handle type, issue #117Bert Münnich