Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Samir Ihaddadene From Youtube.com #18

@SamirDeveloper

Description

@SamirDeveloper

Hello Amitav, i want to have the same size as the white rectangle of cropping as the size of my image that i uploaded, i tried with zooming to zéro but that doesn't work.
this is bellow my code( Thank you for help) :

`

<script src="jquery-3.4.1.min.js"></script> <script src="../croppie-2.6.4/croppie.js"></script>
<div class="Modal" v-if="modalVisible" id="resizer-demo">
    <script type="text/javascript">
        var el = document.getElementById('resizer-demo');
        var resize = new Croppie(el, {
            viewport: { width: 400, height: 300 },
            //original: { width: 400, height: 400, type: 'square' },
            boundary: { width: 500, height: 400 },
            showZoomer: false,
            //enableZoom: false,  1ere solution
            enableResize: true,
            //enableOrientation: true,
            //mouseWheelZoom: 'ctrl',
            
        });
       
        resize.bind({ 
            url: 'img.PNG',
            //zoom: 0    //5eme solution
            //points: [0, 0, 800, 600]
        });

        resize.result('blob').then(function (blob) {
            console.log('PHOT CROPPED');
            resize.setZoom(0.0);
            
        });
    </script>
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions