thephpleague / color-extractor

Extract colors from an image like a human would do.
thephpleague.com
MIT License
1.3k stars 159 forks source link

Be able to pass in an image resource instead of image path. #32

Closed zandzpider closed 8 years ago

zandzpider commented 9 years ago

Would be nice if i could pass an image stream, directly from memory instead of dumping the file to disk, and then process it via the color-extractor.

MatTheCat commented 9 years ago

Ping @philsturgeon I always wondered why you wrote the Client class this way!

philsturgeon commented 9 years ago

I probably wasn't thinking, change it!

zandzpider commented 9 years ago

Either throw in an filepath/string or an resource. yey =D

MatTheCat commented 9 years ago

Should I add only a load method or loadResource and loadFile (or both)?

philsturgeon commented 9 years ago

Probably make a new Resource or File class, with methods that accept various formats, or something.

Ask on the mailing list perhaps, I'm crap at this.

Phil Sturgeon Sent from my iPhone and there's probably typos because I'm probably at the pub.

On Jun 25, 2015, at 4:15 PM, Mathieu notifications@github.com wrote:

Should I add only a load method or loadResource and loadFile (or both)?

— Reply to this email directly or view it on GitHub.