Commit Graph

141 Commits

Author SHA1 Message Date
tastytea 89edcb4de7
Fix install in CI
continuous-integration/drone/push Build is passing Details
2022-06-11 08:58:37 +02:00
tastytea a1f2309dc7
typo 2022-06-11 08:43:56 +02:00
tastytea 7328f93b6e
Add git to CI
continuous-integration/drone/push Build is passing Details
2022-06-11 08:42:42 +02:00
tastytea 528f4480aa
Use FetchContent for identiconpp
continuous-integration/drone/push Build is failing Details
2022-06-11 08:33:58 +02:00
tastytea 80ccc2c7a1
CI: fix identiconpp discovery?
continuous-integration/drone/push Build is failing Details
2022-06-11 07:55:41 +02:00
tastytea d927ef6ca0
remove libxdg-basedir from docs and CI 2022-06-11 07:52:25 +02:00
tastytea dc5d843c08
drone: get submodules
continuous-integration/drone/push Build is failing Details
2022-06-11 07:48:26 +02:00
tastytea 65004ce1f8
Update drone recipe and docs
continuous-integration/drone/push Build is failing Details
2022-06-11 07:42:56 +02:00
tastytea 3039d16919
Bundle identiconpp 2022-06-11 07:35:29 +02:00
tastytea 2b9575c51a
actually pass file type to image::write() 2022-06-11 06:40:00 +02:00
tastytea e4b246bc75
remove debug statement 2022-06-11 06:27:26 +02:00
tastytea 78a7184250
allow requesting file type, try to guess right quality 2022-06-11 06:16:12 +02:00
tastytea 6aa3b40faa
Read images from file, allow forcing magick 2022-06-11 05:28:55 +02:00
tastytea 17205298cd
implement fallbacks 2022-06-11 04:46:54 +02:00
tastytea cb354e666d
move types to types.hpp, match hash to email 2022-06-11 04:29:05 +02:00
tastytea cbd86c7000
Generate hashtable 2022-06-09 20:53:26 +02:00
tastytea 03ae11a842
Parse REQUEST_URI 2022-06-09 04:28:50 +02:00
tastytea 7316fe90e3
start of rewrite
- update CMake files
- add QA and formatting configs
2022-06-09 02:31:30 +02:00
tastytea 41abb50563
Version bump 0.7.5
continuous-integration/drone/push Build is passing Details
Also bumped the maximum supported CMake version while I was in the file.
2021-11-26 04:51:31 +01:00
tastytea 3433f88dcc
Don't allow redirections to external websites.
continuous-integration/drone/push Build is passing Details
See <https://cwe.mitre.org/data/definitions/601.html>.
2021-11-26 04:45:59 +01:00
tastytea 8341793768
Version bump 0.7.4.
continuous-integration/drone/push Build is passing Details
2020-10-24 12:11:36 +02:00
tastytea 6549dcf8e6
Update readme.
continuous-integration/drone/push Build is passing Details
2020-10-24 12:09:54 +02:00
tastytea e8c1dcdf2b
Add CGI caching to nginx example. 2020-10-24 12:00:54 +02:00
tastytea e70e07c579
Remove copyright from readme. 2020-10-24 11:40:49 +02:00
tastytea d523342f6a
Re-enable CI.
continuous-integration/drone/push Build is passing Details
2020-10-24 11:35:50 +02:00
tastytea 891d5d3ca3
Update formatting, add namespace and fix a few warnings.
continuous-integration/drone/push Build is passing Details
2020-10-24 11:25:15 +02:00
tastytea 846e85aecf
CI: Disable Debian buster test.
The stretch package of identiconpp can not be installed on buster.
2020-10-24 11:16:57 +02:00
tastytea 05c6276d43
Fix crypto++ lookup. 2020-10-24 11:14:26 +02:00
tastytea 5b71abecf2
Configure fs-compat.hpp. 2020-10-24 11:14:10 +02:00
tastytea 83dbd5b6f4
CI: Disable GCC 6 test.
continuous-integration/drone/push Build is failing Details
I don't know how to fix this error:

+ apt-get install -qq -t stretch-backports cmake
E: Unable to correct problems, you have held broken packages.
2020-10-24 11:12:06 +02:00
tastytea a0db3380b1
Detect which file-system-header to include more reliably. 2020-10-24 10:55:35 +02:00
tastytea b8bfbbeccd
CI: use CMake from stretch-backports.
continuous-integration/drone/push Build is failing Details
stretch has 3.7, we need 3.10.
2020-10-24 10:54:03 +02:00
tastytea ee4451af6b
Update Drone CI recipe.
continuous-integration/drone/push Build is failing Details
New format, reduce tests, no auto-generated packages.
2020-10-24 10:31:25 +02:00
tastytea e7423c92ca
Update / modernize CMake files.
* CMake 3.10 required from now on.
* Use CMakeConfig and IMPORTED_TARGET for pkg-config.
* More debug flags.
2020-10-24 09:55:52 +02:00
tastytea 53466aadef Merge pull request 'Do not reopen stdout while image resizing' (#7) from mymedia2/libravatarserv:patch-1 into master
Reviewed-on: #7
2020-10-24 08:41:13 +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
tastytea de7e61a2fe
Update copyright years.
the build was successful Details
2019-02-28 19:49:46 +01:00
tastytea 139e5b24be
Bumped version to 0.7.3.
the build was successful Details
2019-02-28 19:23:45 +01:00
tastytea 1a4ebaf024
Fixed the bug introduced by latest bugfix. m(
the build was successful Details
We included ?/& in the search, but forgot to set the pos +1 char to
the right.
2019-02-28 19:05:27 +01:00
tastytea 79ed6d6432
Updated list of supported/unsupported fallbacks. 2019-02-28 18:57:13 +01:00
tastytea 3f32e4ff51
Bugfix: "forcedefault" would be treated as "default".
the build was successful Details
2019-02-28 18:54:50 +01:00
tastytea 00a29894e9
Fixed background color for identicons.
the build was successful Details
It was 2 characters too short. That resulted in an error.
2019-02-28 18:24:52 +01:00
tastytea 97099f0a8a
retro and identicon is now 5x5.
the build was successful Details
ivatar changed the size of retro to 5x5, mirroring that.
2019-02-28 17:53:52 +01:00
tastytea fba5c64486
Adjust identicons to match ivatar (10x10, padding, colors, retro = identicon).
the build was successful Details
2019-02-20 23:12:48 +01:00
tastytea abe643bb6c
Updated Readme. 2019-02-20 03:22:57 +01:00
tastytea 1475bdd3fc
Added extra warnings in debug builds. 2019-02-20 03:05:25 +01:00
tastytea 021e9cfc1d
Initialize variables in Request and Image. 2019-02-20 03:04:23 +01:00
tastytea ee6a113e1a
Re-use Image object for identicons. 2019-02-20 03:03:09 +01:00
tastytea 19896e78e0
Updated the dependency-list to require identiconpp-0.3.4 or above. 2018-12-28 02:25:34 +01:00
tastytea e43e3681e9
Updated the dependency-list to require identiconpp-0.3.3 or above.
the build was successful Details
2018-12-27 22:55:53 +01:00