Harry Jeffery
4eaa1c89ae
Add customisable image resizing behaviour
...
Two new flags: -w and -W enable resizing and recentering, respectively.
Also add an 'autoresize' config variable to control this behaviour.
Fixes #122
2019-02-16 21:01:38 +00:00
Harry Jeffery
b1f7fe555c
Fix truncated path list from stdin
...
It turns out, the paths from stdin weren't being truncated. The issue
was with the use of the SDL event queue for passing the paths back to
imv's main thread.
The events were being pushed correctly, but due to a workaround for a
bug in SDL, instead of flushing the contents of the event queue, we now
ignore window events until all events already in the queue have been
handled.
This fixes #141
2019-02-16 14:35:27 +00:00
Harry Jeffery
8323dfc6fc
meta: Update CI badge
2019-02-15 22:42:36 +00:00
Harry Jeffery
3d007bc47c
meta: Move CI to sr.ht
2019-02-15 22:24:50 +00:00
Harry Jeffery
e6b9072be3
png: Don't use non-portable alloca
2019-02-15 22:02:57 +00:00
Harry Jeffery
d737b34430
imv: Add lots of comments to struct imv
2019-02-10 23:42:30 +00:00
Harry Jeffery
32aae1077e
imv: Use calloc for lazy initialisation
2019-02-10 16:50:05 +00:00
Harry Jeffery
e3836c371f
imv: Fix uninit background_type
2019-02-10 16:39:41 +00:00
Harry Jeffery
551464706c
Tweak allocation sizeof operator usage
2019-02-10 00:49:27 +00:00
Harry Jeffery
a306cd5516
image: Small tidy up
2019-02-04 11:18:13 +00:00
Harry Jeffery
f57d0adaec
Run sources in background threads
2019-02-04 03:53:36 +00:00
Harry Jeffery
05db4c452c
Make sources thread-safe
2019-02-04 03:48:03 +00:00
Harry Jeffery
09928120e3
rsvg: Add open_memory support
2019-02-02 23:44:22 +00:00
Harry Jeffery
469435f469
Add libtiff to travis.yml
2019-02-02 22:36:09 +00:00
Harry Jeffery
31e3a4a450
Add libtiff backend
2019-02-02 22:35:18 +00:00
Harry Jeffery
a857a8805c
jpeg: Fix mmap error handler
2019-02-02 22:09:28 +00:00
Harry Jeffery
ffa73dc180
Update contribution guide
2019-01-31 22:31:38 +00:00
Harry Jeffery
0f1f32a149
jpeg: Add open_memory support
2019-01-31 22:04:48 +00:00
Harry Jeffery
6b639fe19b
Tweak comments on backend accessor functions
2019-01-31 22:04:48 +00:00
Harry Jeffery
bd3504c580
Add libjpeg-turbo backend
2019-01-31 22:04:48 +00:00
Harry Jeffery
c46924345f
imv: Close unsupported images more rapidly
2019-01-31 00:19:42 +00:00
Harry Jeffery
35c81938f3
Fix some compiler warnings
2019-01-31 00:02:51 +00:00
Harry Jeffery
4681319d1d
Tweak Makefile flag handling
2019-01-31 00:02:06 +00:00
Harry Jeffery
265e7f43a6
rsvg: Fix missing stdlib include
2019-01-30 23:24:41 +00:00
Harry Jeffery
527cc9ef36
Tweak default + CI build strictness
2019-01-30 23:24:27 +00:00
Harry Jeffery
c181e7ee9b
Update tests for new backend approach
2019-01-30 23:15:14 +00:00
Harry Jeffery
cfcf77f1ed
Tweak CI build rules
2019-01-30 23:12:59 +00:00
Harry Jeffery
442752efde
loader: Delete legacy loader
2019-01-29 22:26:22 +00:00
Harry Jeffery
4d74ab1be3
FreeImage: Add open_memory support
2019-01-29 22:26:22 +00:00
Harry Jeffery
ef3fab3d21
imv: Use open_memory for stdin
2019-01-29 22:26:22 +00:00
Harry Jeffery
453d70f9b7
backend: Add open_memory function
2019-01-29 22:26:22 +00:00
Harry Jeffery
5ea3ec05df
imv: Improve failed load error handling
2019-01-29 22:26:22 +00:00
Harry Jeffery
4461e36a26
imv: Tweak whitespace style
2019-01-29 22:26:22 +00:00
Harry Jeffery
b287cd2e5d
rsvg: Fix uninitialised pointer
2019-01-29 22:26:22 +00:00
Harry Jeffery
2b5907c660
png: Fix loading of PNGs missing an alpha channel
2019-01-29 22:26:22 +00:00
Harry Jeffery
075bc7705f
Add PACKAGERS file
2019-01-29 22:26:22 +00:00
Harry Jeffery
c7d76a143c
Update README
2019-01-29 22:26:22 +00:00
Harry Jeffery
167b640188
Make backends self-describing
2019-01-29 22:26:22 +00:00
Harry Jeffery
c65f6f4903
Make backends optional
2019-01-29 22:26:22 +00:00
Harry Jeffery
269fb9bca7
Add rsvg backend
2019-01-29 22:26:22 +00:00
Harry Jeffery
91eb7306b9
Support multiple backends
2019-01-29 22:26:22 +00:00
Harry Jeffery
4e928fb9bb
Use FreeImage under FIPL instead of GPL
2019-01-29 22:25:05 +00:00
Harry Jeffery
55724fae1e
Add libpng backend
2019-01-29 22:25:05 +00:00
Harry Jeffery
2d5bb23bed
bitmap: Support multiple pixel formats
2019-01-29 22:25:05 +00:00
Harry Jeffery
c987d66cef
source: Remove obsolete fields
2019-01-29 22:25:05 +00:00
Harry Jeffery
090a0ceb7c
imv_source: Handle gifs
2019-01-29 22:25:05 +00:00
Harry Jeffery
f4305c11aa
imv_source: Use callbacks, not SDL to return async results
2019-01-29 22:25:05 +00:00
Harry Jeffery
32bfa1535a
Switch from loader to freeimage backend
2019-01-29 22:25:04 +00:00
Harry Jeffery
f42aa1b57f
Start implementing a freeimage backend
2019-01-29 22:25:04 +00:00
Harry Jeffery
68435c2aa8
Define sources & backends
2019-01-29 22:25:04 +00:00