7#include "faker-cxx/export.h"
39FAKER_CXX_EXPORT std::string
imageUrl(
unsigned width = 640,
unsigned height = 480);
56FAKER_CXX_EXPORT std::string
urlLoremFlickr(
unsigned width = 640,
unsigned height = 480,
57 std::optional<ImageCategory> category = std::nullopt);
76FAKER_CXX_EXPORT std::string
urlPicsumPhotos(
unsigned width = 640,
unsigned height = 480,
77 std::optional<bool> greyscale = std::nullopt,
78 std::optional<int> blur = std::nullopt);
111FAKER_CXX_EXPORT std::string_view
type();
FAKER_CXX_EXPORT std::string dimensions()
Generates a random image dimensions.
FAKER_CXX_EXPORT std::string urlLoremFlickr(unsigned width=640, unsigned height=480, std::optional< ImageCategory > category=std::nullopt)
Generates a real image url with `https://loremflickr.com/`.
FAKER_CXX_EXPORT std::string githubAvatarUrl()
Generates a random avatar from GitHub.
FAKER_CXX_EXPORT std::string imageUrl(unsigned width=640, unsigned height=480)
Generates a random image url with `https://loremflickr.com/` or "https://picsum.photos".
FAKER_CXX_EXPORT std::string_view type()
Generates a random type of image.
FAKER_CXX_EXPORT std::string urlPicsumPhotos(unsigned width=640, unsigned height=480, std::optional< bool > greyscale=std::nullopt, std::optional< int > blur=std::nullopt)
Generates a real image url with "https://picsum.photos" .
ImageCategory
Definition image.h:12