Commit graph

111 commits

Author SHA1 Message Date
Aaron Liu
7b5d7907d1
fix spurious size detect error and format error messages from system
TODO: fix unexpanded tilde on Windows
2024-02-01 18:18:50 -05:00
Aaron Liu
497b533010
hopefully this fixes gcc 2024-02-01 18:16:53 -05:00
Aaron Liu
ac334fdfaa
lots of changes after a lot of time
rewrote some functions to use an accompanying function that returns a string; this prepares for splitting us into a library
fixed weird bug caused by CImg update
some endls have been replaced with \n
slightly more consistent function naming
more comments

1.3 part 1 out of ?
2024-02-01 18:14:27 -05:00
Aaron Liu
d9c1b47816
fix last commit 2024-02-01 18:14:23 -05:00
Aaron Liu
7b3c8286fe
make positioning of flags in emitTermColor consistent with other funcs 2024-02-01 18:13:31 -05:00
Aaron Liu
f51dc08b0a
correct image size in warning
it's 20x6, not 80x24
2024-02-01 18:07:20 -05:00
Aaron Liu
e636a03c13
separate print and string generation functions
string generation during image processing now have their own functions
2024-02-01 18:05:50 -05:00
Aaron Liu
9969dd1cff
rename some functions
change emit to print; emit will be used for things that generate strings/streams
use camelCase, closer to google style
specify that color is terminal color
2024-02-01 18:04:23 -05:00
Aaron Liu
c001eca18d
minor optimizations & bump version
make flags an int8_t
replace excessive instances of endl with \n
make a boolean const with better assignment
2024-02-01 18:01:06 -05:00
Aaron Liu
e72b11d359
more comments 2024-02-01 17:52:19 -05:00
Aaron Liu
e358e372ec
fix weird CImg bug 2024-02-01 17:49:14 -05:00
Stefan Haustein
bba4a692db clarify comments some more 2024-01-24 20:13:28 +01:00
Stefan Haustein
512b3dd91c Align license header with README.md 2024-01-24 19:55:40 +01:00
Stefan Haustein
1154264c54 Clarify / clean up some comments 2024-01-24 19:49:07 +01:00
Aaron Liu
7573de8a61
fix a stupid typo and clarify windows error code 2023-12-06 20:38:24 -05:00
Aaron Liu
c4e12b539a
bump version 2023-12-06 16:04:41 -05:00
Aaron Liu
e5c4677542
Merge branch 'master' of https://github.com/stefanhaustein/TerminalImageViewer 2023-12-06 15:58:41 -05:00
Aaron Liu
11d82bde63
try to help #132
also added a bit of docs
2023-12-06 15:57:55 -05:00
Aaron Liu
c87dd19ea1
should fix #132 2023-12-06 15:49:06 -05:00
Huell-Howitzer
55e6f062a3
Fix typo 2023-11-30 16:45:52 -08:00
Aaron Liu
413a90124c
version 1.2 2023-09-29 21:06:50 -04:00
Patrice Torguet
31b959cc49
Correct a small bug
The code misses a + sign on line 36.
2023-02-16 16:17:24 +01:00
Aaron Liu
c0ae9cffe0
Update tiv.cpp 2022-06-26 10:38:44 +08:00
Aaron Liu
e69c53e4cc Fix #101 2021-05-26 21:45:31 +02:00
Aaron Liu
43aa3ac274 Revert Update Makefile 2021-05-22 19:09:18 +02:00
Aaron Liu
009c6b7acb Update Makefile 2021-05-22 19:09:18 +02:00
Aaron Liu
7f5ed52be7 Filesystem no longer Experimental 2021-05-22 19:09:18 +02:00
Aaron Liu
93ee24fbc1 Filesystem no longer Experimental 2021-05-22 19:09:18 +02:00
pepa65
91d74f6678 Squash warning
Make end_marker unsigned
2020-12-14 20:55:15 +01:00
Aaron Liu
47e45c782d Add note 2020-10-22 20:56:54 +02:00
Stefan Haustein
5dce9e6108 Fix initialization issue #87 (replicating an earlier pull request that wasn't submitted for some reason) 2020-10-21 23:42:01 +02:00
Stefan Haustein
9566005db8 Version numer v1.1.0 2020-07-05 16:42:42 +02:00
Stefan Haustein
37dc1f9b07 Add an explicit error message for files that can't be opened 2020-07-05 13:15:42 +02:00
Jan Chren (rindeal)
134ca73909 cpp: prevent crashes when last argument expects a value 2019-10-21 21:12:09 +02:00
Jan Chren (rindeal)
92ecfa55f2 cpp: fix whitespaces
- strip trailing WS
- 8-char tabs -> 8 spaces
- use 2 spaces for indentation consistently
2019-10-21 21:12:09 +02:00
Stefan Haustein
e79df170f5 Fix light down unicode #64 and an initial color issue resulting from the fix for #68 2019-10-19 11:42:54 +02:00
Jan Chren (rindeal)
1de00052a1 cpp: don't emit duplicate color codes
Closes: https://github.com/stefanhaustein/TerminalImageViewer/issues/54
2019-10-19 11:27:06 +02:00
Jan Chren (rindeal)
4743f30485 Makefile: make it packaging friendly 2019-10-19 00:29:07 +02:00
shabbyrobe
97ac9f02f9 Replace best_diff when a better diff comes along 2019-10-14 19:14:27 +02:00
crouvpony47
bbc34345a1 output redirection and color calculation fixes; minor improvements
fix: no longer accessing unexisting element of color_per_count;
fix: improved redirection handing;
fix: don't print empty rows in thumbs mode.
2019-05-22 11:11:39 +02:00
cabelo
5ef1f70a3a Redirect STDOUT to file 2019-03-26 21:26:43 +01:00
Stefan Haustein
f055e5b675 Revert "Persistence options"
This reverts commit aef2fbccdc.
2019-03-23 22:33:28 +01:00
Stefan Haustein
d749d51042 Revert "Constant standard output stream"
This reverts commit 543cebef37.
2019-03-23 22:33:28 +01:00
Stefan Haustein
cd2805d33d Revert "null values"
This reverts commit 9717adc840.
2019-03-23 22:33:28 +01:00
Stefan Haustein
7e5b9d94ee Revert "null values"
This reverts commit 28e9f5e40e.
2019-03-23 22:33:28 +01:00
Stefan Haustein
0973fbd76c Revert "null values"
This reverts commit 3e57ebb80c.
2019-03-23 22:33:28 +01:00
Alan De Smet
419056506f Cleanup to match upstream style. 2019-03-23 22:32:20 +01:00
Alan De Smet
f97c6e9eb0 Make operator* a member of struct size
instead of being global
2019-03-23 22:32:20 +01:00
Alan De Smet
06467c38d8 Center tall, skinny thumbnails in their space. 2019-03-23 22:32:20 +01:00
Alan De Smet
6b80bc0717 Preserve aspect ratio of tall, skinny images in thumbnails. 2019-03-23 22:32:20 +01:00