From 30e6eb2e1a17b75fd71f1eabc9354f04e354bc69 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Fri, 9 Feb 2024 11:06:38 -0800 Subject: [PATCH] initial commits --- LICENSE | 19 +++++++++++++++++++ README.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 LICENSE create mode 100644 README.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..50254e5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2024 Charles Iliya Krempeaux :: http://changelog.ca/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..3d15ebb --- /dev/null +++ b/README.md @@ -0,0 +1,46 @@ +# go-imgrow + +Package **imgrow** provides tools for **growing** and **image** by an integer value. + +For example — if you have an image, then you make it 2× bigger, or 3× bigger, or 4× bigger, etc. + +## Documention + +Online documentation, which includes examples, can be found at: http://godoc.org/sourcecode.social/reiver/go-imgrow + +[![GoDoc](https://godoc.org/sourcecode.social/reiver/go-imgrow?status.svg)](https://godoc.org/sourcecode.social/reiver/go-imgrow) + +## Example: + +```go +import "sourcecode.social/reiver/go-imgrow" + +// ... + +var originalImage image.Image = ... + +// ... + +var scalar int = 400 // change this value to how many times bigger you want the image to be. here it is 400× bigger. + +var newImage image.Image = imgrow(scalar, originalImage) + +``` + +## Import + +To import package **imgrow** use `import` code like the follownig: +``` +import "sourcecode.social/reiver/go-imgrow" +``` + +## Installation + +To install package **imgrow** do the following: +``` +GOPROXY=direct go get https://sourcecode.social/reiver/go-imgrow +``` + +## Author + +Package **imgrow** was written by [Charles Iliya Krempeaux](http://changelog.ca)