Skip to content

gbLw1/go-img-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

random image generator with custom size

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages