Giter Club home page Giter Club logo

ansize's People

Contributors

jhchen avatar zebbeni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansize's Issues

Cannot install/build ansize

Hello,

I'm not able to properly install ansize.
The command should be "go get github.com/nfnt/ansize", but this results in:

fatal: https://github.com/nfnt/ansize/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?
package github.com/nfnt/ansize: exit status 128

And your example for Mac installation (via Homebrew) states that the package is "resize".
Did this happen due to a repository (name) switch or anything like that?

Edit: Okay, I had a closer look in the source code. Resize is a dependency and "go get" works fine for that.
So, first you should add the installation instruction "go get github.com/nfnt/resize" and then fix the error for "go get'ting" your repo ;)

How about keeping the original proportion by default?

Hi @jhchen

Thanks for the tool, it's fully accorded with my need, I appreciated that.

I found the output got seriously squeezed with images of relatively large height to width ratio.

Here's what makes it so:

PROPORTION float32 = 0.46

m := resize.Resize(uint(width), uint(float32(width) * PROPORTION), img, resize.Lanczos3)

The image height during the resizing is hardcoded to width * 0.46, but why 0.46?

How about keeping the original proportion by passing 0 as height to Resize?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.