thematic_images 0.1.0 copy "thematic_images: ^0.1.0" to clipboard
thematic_images: ^0.1.0 copied to clipboard

The package generates thematic images with defined keywords and sizes.

Thematic Image Generator #

Cover - Thematic Images

GitHub License

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);

Output Castle - Thematic Images

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?
3
likes
0
points
40
downloads

Publisher

verified publishersyrokomskyi.com

Weekly Downloads

The package generates thematic images with defined keywords and sizes.

Repository (GitHub)
View/report issues

Topics

#generator #images #random #rpg #games

License

unknown (license)

Dependencies

dio, image

More

Packages that depend on thematic_images