Comments (4)
For this kind of things, there will be effects api (think DrawerInterface),
which will define EffectInterface that each driver will implement.
The main goal of Imagine is to bring the different libraries PHP comes with
to a common interface,
so you would probably do something like the following when that API is
built:
return $image->effect()
->colorize($this->color);
On Thu, Mar 24, 2011 at 4:03 PM, hetsch <
[email protected]>wrote:
Hi,
first thing - thanks for that beautiful library. I really appreciate to
work with it.
There is one small question left for me:
If i try to make a FilterInterface to manipulate the color of an image like
this:class Color implements FilterInterface { private $color; public function __construct($value) { $ratio = max($value, 255); $this->color = new \Imagine\Image\Color('fff'); $this->color->darken($value); } public function apply(ImageInterface $image) { return imagefilter($image->resource, IMG_FILTER_COLORIZE, $this->color->getRed(), $this->color->getGreen(), $this->color->getBlue() ); } }there is no way to get receive the resource of the image because it's a
private property. I also
haven't found a getter method. So might it make sense to create a getter,
or do I only have some heavy knots in my thoughts?Thanks
Reply to this email directly or view it on GitHub:
#18
Bulat Shakirzyanov | Software Alchemist
a: *about.me/avalanche123
*e: [email protected]
from imagine.
Nice! So when can we expect that kind of thing? Is it planed to release it in the next few days/weeks or do we have to wait longer? (only roughly...). But anyway - thanks for your response
from imagine.
next couple of weeks, thanks for using it!
On Thu, Mar 24, 2011 at 4:51 PM, hetsch <
[email protected]>wrote:
Nice! So when can we expect that kind of thing? Is it planed to release it
in the next few days/weeks or do we have to wait longer? (only roughly...).
But anyway - thanks for your responseReply to this email directly or view it on GitHub:
#18 (comment)
Bulat Shakirzyanov | Software Alchemist
a: *about.me/avalanche123
*e: [email protected]
from imagine.
Great!
from imagine.
Related Issues (20)
- Deprecation messages in symfony 5.4 HOT 13
- Split getSupportedFormats into getSupportedInputFormats and getSupportedOutputFormats HOT 2
- Release a PHP 8.1 version HOT 3
- Segmentation fault with GD on 1.3.1 HOT 24
- Support for CMYK ? HOT 11
- curl error: 1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version HOT 9
- Unable to open remote jpg image HOT 1
- Issue reading GDImage object using \Imagine\Gd\Imagine read() method HOT 3
- Is there an inverse to getGdResource() HOT 7
- Gd\Drawer -> ellipse
- Why does Point class reject negative values...? HOT 3
- Hello, is this image library still being updated? I want him to be a replacement for intervention, because intervention is no longer updated. HOT 1
- `getImageAlphaChannel` returns incorrect value HOT 3
- Incorrect formula to calculate the linnear position. HOT 1
- Update min required PHP version and fix deprecation warnings HOT 3
- Error when file is coming from temp directory: Creating an image in "C:\Users\...\Temp\phpA6B2.tmp" format is not supported, please use one of the following formats: HOT 7
- Feature request: Add support for "setOption('jpeg:size', '800x800');"
- vulnerable libraries (jQuery) HOT 4
- Memory limit not throw new RuntimeException
- Saving Lossless Webp? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagine.