Comments (23)
Some references http://phpthumb.gxdlabs.com/
Would be great also to implement methods to display placeholders
from yii2.
i like Kohana image module
from yii2.
Vote against this. There are many independent libraries for it. I believe that the most powerful of them is Imagine.
from yii2.
I vote for this, as most image extensions for Yii is utterly crap. This is such a common requirement. Yii1 has CUploadedFile (haven't had the time to browse Yii2 code yet :p ), why not an ImageHelper?
I second the image placeholder functionality.
from yii2.
I think should work similar to the email interface described in #31. Provide an interface for common operations that my be done by a replaceable backend.
from yii2.
Did you guys see Imagine
? Which makes sense to do another extension for image processing, especially considering that it is also a need to support?
from yii2.
There are hundreds of image extensions..
And dozens of Yii extensions which does something image related. Most of them are badly written and/or out of date/not maintained.
I will look at Imagine. :)
However, I don't think the goal is to compete with it.
You can do much just by using GD.
from yii2.
@alari has done an Imagine component for Yii:
https://github.com/alari/yii-imagine
And an Images-Holder module using it:
https://github.com/alari/yii-imagesHolder
However.. not sure if this is Yii2 core material.
It looks great, though. Even though Imagine seems to be only maintained at the moment, not actively developed.
from yii2.
@creocoder will definitively look at some before starting implementation on anything.
from yii2.
Consider adding functionality massive caching. Something like this I think: resize image, add some filter, add watermark. Result will be cached and for some time when you want to show the image with the filter, watermark, etc ... image will go from cache.
Global setting for how long save in cache, when delete, where cache.
I use this: http://phpthumb.sourceforge.net/ (do the work but there is some problems).
from yii2.
@cebe I think the desire to disappear as soon as you look Imagine. ;) This can be used without any extensions.
from yii2.
Nowadays web applications use lots of images in cloud services. I don't know if ImageHelper is the correct place for it but, somewhere, Amazon storage, Rackspace Cloud Files, etc, somewhere, we should support assets cloud storage
from yii2.
I totally agree with @luislobo but I think the ImageHelper is for other purposes. A REST client assets cloud storage is another thing, and Guzzle does a pretty good job.
from yii2.
If we could come to a consensus about minimum viable features/methods I would be willing to take up this task.
from yii2.
@crisu83 wrote an image "manager" (though basically a helper/manipulator/whatever) for Yii 1.1, based on Imagine, see: https://github.com/Crisu83/yii-imagemanager
from yii2.
@rawtaz thanks for mentioning my work. You should definitely take a look at my image manager extension. I think it's a bit of a overkill implementation to be added to Yii itself, but you might find the manipulation part interesting.
from yii2.
follow it.
from yii2.
@callmez there's a button for following at the very bottom of the screen ;)
from yii2.
i think we just need simple bridge to imagine lib, in yiiext there is a one simple extensions that acts this way, i think it is what needed.
from yii2.
My extension has that simple bridge too, check out the ImagineFilter class for example.
from yii2.
@crisu83 yes, i saw your extensions, but i think it is overkill, dont need that too much, almost 90% of image-handlings is simple avatars, text etc. so that 1 file in yiiext is enough i think. anyway we should keep code clean and not build yet another (yii/symphony components) ;)
from yii2.
Of course it's overkill. I already mentioned that but the actual API for Imagine and the filters could easily be separated and simplified if necessary.
from yii2.
I Love Imagine too....... its really great to see in yii2.
from yii2.
Related Issues (20)
- BaseActiveRecord save method behaviour HOT 1
- Setting YII_DEBUG=false in humhub 1.15.2 leads to internal server error HOT 2
- Memory usage leak when long operation HOT 6
- createControllerByID function add cache? HOT 14
- Relational queries populating invalid models when foreign key / linking value is 0 HOT 1
- request` failed for
- asDuration() produce wrong plural form when using russian locale HOT 2
- hasOne or hasMany return null when $link with two bigint element
- YII2 whether support reset-transaction? HOT 1
- PHP Deprecated: Calling session_set_save_handler() in `PHP 8.4`. HOT 4
- If the iframe is nested in another domain name, there is an exception in the Yii2 site at https://, where there is a jump from http:// HOT 3
- Invalid fatal error handling in php 8.3 HOT 11
- Does yii2 support connection pooling using redis? HOT 1
- Wrong `columnQuoteCharacter` default in Schema for sqlite3 HOT 2
- wulan HOT 1
- Logic failed in RegularExpressionValidator
- Validator error handling in php 8.3 HOT 2
- How should I use Yii2 version 2.0.42.1 in my project HOT 3
- RequiredValidator with typed properties HOT 7
- Unable to resolve the request "--" with chroot HOT 1
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 yii2.