Coder Social home page Coder Social logo

how to import image pixels? about imagick HOT 8 CLOSED

gographics avatar gographics commented on June 15, 2024
how to import image pixels?

from imagick.

Comments (8)

justinfx avatar justinfx commented on June 15, 2024

Actually, this function was fixed back in Jan 2014, to accept interface{} instead of []interface{}:
https://github.com/gographics/imagick/pull/9/files#diff-340319a2441d3957108547f05d6ff307L1480

For some reason, godoc is looking at the go1 branch and showing the wrong outdated docs.

You should be able to completely ditch the loop that converts to []interface{} and just pass the im.Pix directly to ImportImagePixels

from imagick.

justinfx avatar justinfx commented on June 15, 2024

@hgfischer maybe you should just delete the go1 branch?

from imagick.

akonsu avatar akonsu commented on June 15, 2024

@justinfx I tried that, with the version that go get installs, and it won't compile. It says that it cannot convert non interface type to interface.

from imagick.

justinfx avatar justinfx commented on June 15, 2024

Can you give it one more try? I have merged master into the go1 branch so that it gets picked up by go get and godoc.org, until @hgfischer confirms that it is ok to delete the branch

from imagick.

akonsu avatar akonsu commented on June 15, 2024

yes, it works now. thanks!

from imagick.

justinfx avatar justinfx commented on June 15, 2024

Awesome! thanks for confirming

from imagick.

hgfischer avatar hgfischer commented on June 15, 2024

It's ok to delete the go1 branch. Probably nobody using Go < 1.0 these days. ;)

from imagick.

justinfx avatar justinfx commented on June 15, 2024

I've deleted the go1 branch. Thanks for confirming :-)

from imagick.

Related Issues (20)

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.