Skip to content

Conversation

insane-dev
Copy link

Hi, thanks for your behavior :)
Maybe it would be useful to give ability to set Image driver?

Sometimes I have problems with Imagick library.
e.g. when creating thumbs it just shows white page, so if there is no time to fix this problem, it would be nice to have this option in your behavior.

I think it would be useful in other situations as well.

@mohorev
Copy link
Owner

mohorev commented Jul 6, 2015

Hello. I am opposed to the complexity of this behavior. If you have problems with Imagick - you can change Imagene driver property globally (in config or bootstrap file, for example).

/config/web.php

<?php

\yii\imagine\Image::$driver = 'gd2';

$config = [
    ...
    ...
];

return $config;

@insane-dev
Copy link
Author

Well, yes you're right.

@insane-dev insane-dev closed this Jul 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants