Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 788 Bytes

README.md

File metadata and controls

27 lines (15 loc) · 788 Bytes

Random image generator

Description

This is a simple Go script to download a random image.

Generate and download a random image from Lorem Picsum providing a width and height parameters.

Requirements

You just need Go installed on your computer.

Usage

In the root directory of the repository run the following command

go run .\cmd\main.go --width={width} --height={height}

Change the values of the width and height parameters to generate the image at the specified size.

You can find the generated image at the root .\img directory.

The generated image will have the name {width}x{height}.png

Where {width} and {height} are the width and height parameters provided.