thematic_images 0.1.0
thematic_images: ^0.1.0 copied to clipboard
The package generates thematic images with defined keywords and sizes.
Thematic Image Generator #
Generates thematic images with defined keywords and sizes. Easy-to-use and well-tested Dart package. Feel free to use it in your projects.
Usage #
By default the package uses https://source.unsplash.com
as source of images.
Get an image #
// get an image generator
final images = Images(keywords: ['castle']);
// generate an image
final image = await images.next;
// save the generated image as PNG file
const file = 'example_image.png';
final encoder = findEncoderForNamedImage(file)!;
final bytes = encoder.encode(image);
File(file).writeAsBytesSync(bytes);
Welcome #
Requests and suggestions are warmly welcome.
This package is open-source, stable and well-tested. Development happens on GitHub. Feel free to report issues or create a pull-request there.
General questions are best asked on StackOverflow.
TODO #
- Notes on the image.
- Styles of images.
- Random sizes options.
- Just a one-filled-color image.
- Local images?