Giter Site home page Giter Site logo

yii2-image-uploader's People

Contributors

argearriojas avatar demisang avatar maks757 avatar

Stargazers

 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

yii2-image-uploader's Issues

Несколько вопросов?

  1. Зачем такая вложенность и почему нет возможности ее отключить?
  2. Почему вместо 3-х дефолтных картинок нельзя использовать одну svg?
  3. Пока не заменил это:
    shell_exec('chmod -R 0777 ' . $path . $DS . $dirs[0] . $DS . '*');
    на это:
    FileHelper::createDirectory($full_path, 0777, true);
    творились чудеса и сказки
  4. Почему нельзя настроить вместо случайного названия, хеширование md5($this->id.$size.$secret)?

Localization

Please add messages translation, i.e. for crop and delete buttons

Ошибка в behaviors

'imageUploaderBehavior' => [
                'class' => 'demi\image\ImageUploaderBehavior',
                'imageConfig' => [
                    // Name of image attribute where the image will be stored
                    'imageAttribute' => 'image',
                    // Yii-alias to dir where will be stored subdirectories with images
                    'savePathAlias' => '@frontend/web/uploads/projects',
                    // Yii-alias to root project dir, relative path to the image will exclude this part of the full path
                    'rootPathAlias' => '@frontend/web',
                    // Name of default image. Image placed to: webrooot/images/{noImageBaseName}
                    // You must create all noimage files: noimage.jpg, medium_noimage.jpg, small_noimage.jpg, etc.
                    'noImageBaseName' => 'noimage.jpg',
                    // List of thumbnails sizes.
                    // Format: [prefix=>max_width]
                    // Thumbnails height calculated proportionally automatically
                    // Prefix '' is special, it determines the max width of the main image
                    'imageSizes' => [
                        '' => 1000,
                        'medium_' => 270,
                        'small_' => 70,
                        'my_custom_size' => 25,
                    ],
                    // This params will be passed to \yii\validators\ImageValidator
                    // 'imageValidatorParams' => [
                    //     'minWidth' => 400,
                    //     'minHeight' => 300,
                    // ],
                    // Cropper config
                    'aspectRatio' => 4 / 3, // or 16/9(wide) or 1/1(square) or any other ratio. Null - free ratio
                    // default config
                    'imageRequire' => false,
                    'fileTypes' => 'jpg,jpeg,gif,png',
                    'maxFileSize' => 10485760, // 10mb
                    // If backend is located on a subdomain 'admin.', and images are uploaded to a directory
                    // located in the frontend, you can set this param and then getImageSrc() will be return
                    // path to image without subdomain part even in backend part
                    'backendSubdomain' => '/admin/',
                ],
            ],

когда добавляю этот код в behaviors выходит такая ошибка
Getting unknown property: backend\controllers\ProjectsController::validators

Not work buttons

Not work buttons to crop and delete no errors in the console, but button open file dialog

Not showing the crop option to crop the image

when i create the profile from profile page it showing only the choose file option and it is not giving the image to crop .
And i added all the code that you are posted in github to my document.
So please help to solve this issue

Не устанавливается через композер

Не хочет устанавливаться.
Если устанавливать по инструкции то возвращает такую ошибку

  Problem 1
    - demi/image 1.2.2 requires yurkinx/yii2-image dev-master -> no matching pac
kage found.
    - demi/image 1.2.1 requires yurkinx/yii2-image dev-master -> no matching pac
kage found.
    - demi/image 1.2.0 requires yurkinx/yii2-image dev-master -> no matching pac
kage found.
    - demi/image 1.1.2 requires yurkinx/yii2-image dev-master -> no matching pac
kage found.
    - demi/image 1.1.1 requires yurkinx/yii2-image dev-master -> no matching pac
kage found.
    - demi/image 1.1.0 requires yurkinx/yii2-image dev-master -> no matching pac
kage found.
    - demi/image 1.0.0 requires yurkinx/yii2-image dev-master -> no matching pac
kage found.
    - Installation request for demi/image ~1.0 -> satisfiable by demi/image[1.0.
0, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.2.1, 1.2.2].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your min
imum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more det
ails.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further commo
n problems.

Installation failed, reverting ./composer.json to its original content.

Если пробовать установить версию 1.2.2 то просто пишет что не может найти расширение
yurkinx/yii2-image

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.