Giter VIP home page Giter VIP logo

cakephp-imagine-plugin's People

Contributors

bfncs avatar burzum avatar damien-biasotto avatar dogmatic69 avatar mcallisto avatar robertpustulka avatar skie avatar steinkel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cakephp-imagine-plugin's Issues

composer correct installation location

Currently, your package installs as CakephpImaginePlugin in the Plugin directory. I was wondering how another Plugin that corrected itself had done so and found that they added installer-name at the bottom. I know this is a tough one for you as some users may already be using this plugin through composer but here's how your composer should look like:
https://github.com/cwbit/cakephp-aggregate-cache/blob/master/composer.json

{
    "name": "burzum/cakephp-imagine-plugin",
    "type": "cakephp-plugin",
    "description": "Imagine Plugin for CakePHP",
    "keywords": ["cakephp","media","image","image-processing"],
    "homepage": "https://github.com/burzum/cakephp-imagine-plugin",
    "license": "MIT",
    "authors": [
        {
            "name": "Florian Krämer",
            "homepage": "http://florian-kraemer.net"
        }
    ],
    "require": {
        "php": ">=5.3.2",
        "imagine/imagine": "*",
        "composer/installers": "*"
    },
    "extra": {
        "installer-name" : "Imagine"
    }
}

Installation from composer fails

Now from composer the package is installed as CakephpImaginePlugin.

As such, in order to work, the name must be changed

  • in app/Config/bootstrap.php at
CakePlugin::load('CakephpImaginePlugin', array('bootstrap' => true));
  • in app/Plugin/CakephpImaginePlugin/Config/bootstrap.php at
require_once CakePlugin::path('CakephpImaginePlugin') . DS . 'Lib' . DS . 'ImagineUtility.php';

Looking for a new maintainer

If you are interested in activly maintaining this library please contact me.

My interest in CakePHP has faded and my personal life doesn't allow me to spend that much time on open source projects anymore either.

Resizing breaks when updating to 2.1.0

After updating from 2.0.0 to 2.1.0, my images won't be resized any longer. They are saved for every size tho.

The config I'm using:

Configure::write('FileStorage', [
    'imageSizes' => [
        'Image' => [
            't200' => [
                'thumbnail' => [
                    'width' => 200,
                    'height' => 200
                ]
            ]
        ],
    ],
]);

Any idea what's going on or what I should check to make this work again?

Autload Problems on *nix machines

I'm getting

"Fatal error: Class 'Imagine\Gd\Imagine' not found ..... in ImagineBehavior.php on line 46".

on *nix Machines. Works fine on Windows!

Fixed it with
public static function load($name) { $name = str_replace("\\", '/', $name); //... }

in App/Plugin/Imagine/Lib/ImagineLoader.php.

In addition you've to either rename the "lib" folder inside vendor/Imagine to "Lib" or also change that in ImagineLoader.php
$imagineBase = \CakePlugin::path('Imagine') . 'Vendor' . DS . 'Imagine' . DS . 'lib' . DS;

3.x Install location

I was just looking through the documentation and I noticed that you suggest putting the plugin into app/Vendor but, in 3.x the folder would be src/vendor and also, the plugin structure has changed so that plugins are just loaded from the composer folder.

Too much memory consumption

I'm using Imagine together with burzum/FileStorage and I think it uses up way too much memory on the server.

On a server with a memory limit of 32mb, it is sufficient to create two smaller versions of an image of around 1mb file size to exceed the limit (inside an application).

Is there some room for improvements to restrict the memory-hunger?

Error loading dependencies with Composer

thomasbelknap@IKW-BELKNT-MBP one-vision % composer require burzum/cakephp-imagine-plugin
Using version ^4.0 for burzum/cakephp-imagine-plugin
./composer.json has been updated
Running composer update burzum/cakephp-imagine-plugin
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires burzum/cakephp-imagine-plugin ^4.0 -> satisfiable by burzum/cakephp-imagine-plugin[4.0.0].
    - burzum/cakephp-imagine-plugin 4.0.0 requires imagine/imagine 0.6.* -> found imagine/imagine[v0.6.0, v0.6.1, 0.6.2, v0.6.3] but it conflicts with your root composer.json require (1.2.4).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

I cannot downgrade Imagine because it tells me:

- Root composer.json requires imagine/imagine 0.6.0, found imagine/imagine[v0.6.0] but the package is fixed to 1.2.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Any help would be greatly appreciated!

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.