disintegration / imaging

Imaging is a simple image processing package for Go
MIT License
5.22k stars 433 forks source link

typo in README #133

Open jftuga opened 3 years ago

jftuga commented 3 years ago

under the FAQ you have:

The stadard image/* packages do not...

standard is misspelled.


Also what is the difference between Resize() and Fit()?

disintegration commented 3 years ago

Thank you! Fixed it.

E.g.

Original image is 400x200 px.

Fit(img, 100, 100, ...) returns 100x50 px image.
Fit(img, 1000, 1000, ...) returns 400x200 px image (unchanged).

Resize(img, 100, 100, ...) returns 100x100 px image.
Resize(img, 100, 0, ...) returns 100x50 px image.
Resize(img, 0, 100, ...) returns 200x100 px image.
Resize(img, 1000, 1000, ...) returns 1000x1000 px image.