Commit Graph

17 Commits

Author SHA1 Message Date
6aa3b40faa
Read images from file, allow forcing magick 2022-06-11 05:28:55 +02:00
17205298cd
implement fallbacks 2022-06-11 04:46:54 +02:00
7316fe90e3
start of rewrite
- update CMake files
- add QA and formatting configs
2022-06-09 02:31:30 +02:00
891d5d3ca3
Update formatting, add namespace and fix a few warnings.
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-24 11:25:15 +02:00
Nicholas Guriev
a7c89b0e3f
Do not reopen stdout while image resizing
On Linux, some web-servers (Apache in particular) close file with fd = 1 and
offer something else as stdout. Notable difference can be seen with a pipe and
an immediate redirection. Consider:

  $ REQUEST_URI=/avatar/68b329da9893e34099c7d8ad5cb9c940 libravatarserv | cat > /tmp/response1.out
  $ REQUEST_URI=/avatar/68b329da9893e34099c7d8ad5cb9c940 libravatarserv > /tmp/response2.out
  $ diff -s /tmp/response{1,2}.out
  Binary files /tmp/response1.out and /tmp/response2.out differ

Solution.

The output should be identical in both cases. So do not let ImageMagick to open
/dev/stdout by itself, instead write the resulted image to an in-memory buffer
and then to a file associated with the "cout" global object.
2020-10-23 21:13:47 +03:00
a909b0405c
Deleted old identicon code. 2018-12-26 05:55:18 +01:00
41299b9529
Transformed some errors into warnings. 2018-12-26 05:47:06 +01:00
3bdcd7b120
Include only necessary Magick++-headers.
All checks were successful
the build was successful
2018-12-01 11:33:32 +01:00
785cd7a35f
Refactored settings-stuff into own file.
All checks were successful
the build was successful
2018-11-30 07:00:37 +01:00
513391f44b
Replaced "\n\n" with << endl << endl for consistency
All checks were successful
the build was successful
2018-11-29 13:45:46 +01:00
ec140aad01
Bugfix: detect file type and send appropriate Content-Type. 2018-11-29 13:40:50 +01:00
cf6b1f84aa
Initialize pseudorandom number with 2^64-1
All checks were successful
the build was successful
2018-11-27 12:01:03 +01:00
87bedbbf7b
typo
All checks were successful
the build was successful
2018-11-27 10:14:44 +01:00
645554e226
Added identicon support (closes #2)
Some checks failed
the build failed
2018-11-27 10:05:35 +01:00
43232d802b
Added support for mystery person (aka mystery man)
All checks were successful
the build was successful
2018-11-27 04:40:17 +01:00
8f0baeb028
Changed default filename drom default.png to default. 2018-11-25 06:32:26 +01:00
f550b7b048
Oops, forgot to commit in between. :-) 2018-11-25 06:00:45 +01:00