Giter VIP home page Giter VIP logo

Comments (23)

tonydspaniard avatar tonydspaniard commented on May 30, 2024

Some references http://phpthumb.gxdlabs.com/

Would be great also to implement methods to display placeholders

from yii2.

nguago avatar nguago commented on May 30, 2024

i like Kohana image module

from yii2.

creocoder avatar creocoder commented on May 30, 2024

Vote against this. There are many independent libraries for it. I believe that the most powerful of them is Imagine.

from yii2.

jacmoe avatar jacmoe commented on May 30, 2024

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.

cebe avatar cebe commented on May 30, 2024

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.

creocoder avatar creocoder commented on May 30, 2024

@jacmoe, @cebe

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.

jacmoe avatar jacmoe commented on May 30, 2024

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.

jacmoe avatar jacmoe commented on May 30, 2024

@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.

cebe avatar cebe commented on May 30, 2024

@creocoder will definitively look at some before starting implementation on anything.

from yii2.

imamovic avatar imamovic commented on May 30, 2024

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.

creocoder avatar creocoder commented on May 30, 2024

@cebe I think the desire to disappear as soon as you look Imagine. ;) This can be used without any extensions.

from yii2.

luislobo avatar luislobo commented on May 30, 2024

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.

tonydspaniard avatar tonydspaniard commented on May 30, 2024

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.

pmoust avatar pmoust commented on May 30, 2024

If we could come to a consensus about minimum viable features/methods I would be willing to take up this task.

from yii2.

rawtaz avatar rawtaz commented on May 30, 2024

@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.

crisu83 avatar crisu83 commented on May 30, 2024

@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.

callmez avatar callmez commented on May 30, 2024

follow it.

from yii2.

samdark avatar samdark commented on May 30, 2024

@callmez there's a button for following at the very bottom of the screen ;)

from yii2.

Ragazzo avatar Ragazzo commented on May 30, 2024

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.

crisu83 avatar crisu83 commented on May 30, 2024

My extension has that simple bridge too, check out the ImagineFilter class for example.

from yii2.

Ragazzo avatar Ragazzo commented on May 30, 2024

@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.

crisu83 avatar crisu83 commented on May 30, 2024

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.

dev-mraj avatar dev-mraj commented on May 30, 2024

I Love Imagine too....... its really great to see in yii2.

from yii2.

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.