diff options
author | lns <matzeton@googlemail.com> | 2022-05-06 11:38:26 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2022-05-06 11:38:26 +0200 |
commit | 3b4947b8b4a5c6ec9421ade5cc759ca3b947bd67 (patch) | |
tree | 8ac0c497f65dee15cf8d0796acc640d0d0e27092 /main.cpp | |
parent | 5e7d06b220d21e03d01334c9f445a8407916bb0d (diff) |
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -18,6 +18,13 @@ int main(int argc, char **argv) { return 1; } +#if 0 + if (gAPI.AvatarToFile("/tmp/" + gAPI.GetUsername() + ".whatever") == false) + { + return 1; + } +#endif + { std::vector<unsigned char> avatar; @@ -25,7 +32,9 @@ int main(int argc, char **argv) { return 1; } - iM.SetJpegFromBuffer(avatar); + if (iM.SetImageFromBuffer(avatar) == false) { + return 1; + } iM.SaveToFile(gAPI.GetUsername() + ".jpg"); } |