Questions tagged [cropper]
128 questions
1
vote
2 answers
[React Cropper]: Cannot read property 'getCroppedCanvas' of undefined
I'm using the library "React Cropper" (https://www.npmjs.com/package/react-cropper).
I have this code (as many examples):
import React from 'react';
import Cropper from 'react-cropper';
export default class PublishPhoto extends React.Component…

emmanuel salazar
- 11
- 1
- 3
1
vote
2 answers
ngx-image-cropper Output property file having undefined name
I am using ngx-image-cropper
to crop an image in my angular app. I use the Output property returning 'File' which is (imageCroppedFile) to be able to grab the cropped image. I need the cropped image to have a file name, so that I can iterate through…

Dejazmach
- 742
- 8
- 15
1
vote
0 answers
How to get the corresponding blob File from a SafeUrl object, in Angular4 ?
I'm working on a Angular4 project where I'm using this library https://github.com/Mawi137/ngx-image-cropper for a image cropper dialog.
The library has an imageFileChanged attribute which can be used to set the file you want to crop. The passed…

CSteve
- 11
- 2
1
vote
1 answer
Image Cropper in Fragment gives "cannot override onActivityResult(int,int,Intent) in Fragment" error
I have to throw in the towel on this. I am trying to use Image Cropper: Arthur Hub in a Fragment and I keep getting this
error: onActivityResult(int,int,Intent) in ProfileFragment cannot
override onActivityResult(int,int,Intent) in Fragment…

BVB09
- 805
- 9
- 19
1
vote
0 answers
Cropper not cropping same image again, how to reset cropper
I am using cropper.js jquery cropper to crop multiple images, but when i select image, cropper not allow to select same image again
This is my cropper code.
var result = document.querySelector('.result'),
img_result =…

Muhammad Riaz
- 403
- 3
- 8
- 23
1
vote
1 answer
rotate is not defined cropper.js
I am using the awesome jquery-cropper plugin from fengyuanchen.
I'm having the issue of when certain images get uploaded it rotates and it is not on the right side which I have to make the user rotate them. I will upload the image via ajax. I'm…

Bruno Francisco
- 3,841
- 4
- 31
- 61
1
vote
1 answer
php/jquery : Unable to save cropped image
So I am creating this page that allows the user to crop his image and then save it on his file, however, although when I click on the button crop, it shows me the alert message "upload success", it doesn't get saved on my folder. So Im guessing…

Kim
- 37
- 7
1
vote
1 answer
How to get dataurl and display dataurl as image using cropper plugin
Been going through the cropper JavaScript plugin for cropping images for days. Can't figure it out. I'm a php person and JavaScript looks like Greek to me. Seems all the examples I've seen from google search assume the reader actually are familiar…

stephen taire
- 23
- 1
- 6
1
vote
0 answers
Cropper.js resulting in broken or partial images
I'm trying to use cropper.js for the following scenario:
User uploads image via form input
User crops the image down resulting in crop a
Crop a is shown as a new image
User crops the image further resulting in crop b
Both cropped images are sent to…

Sherms
- 1,567
- 1
- 15
- 31
1
vote
0 answers
How to get data of a cropped image after cropping the image in cropper.js?
This the part of my code, where I'm initializing the canvas with the image source.
var $image = "";
var extension = "";
var options = {
viewMode: 3,
checkCrossOrigin: false,
crop: function (e) {
return e.detail;
}
};
var…

Suparna
- 85
- 2
- 14
1
vote
1 answer
Cropper crop multiple Images before upload with dropzne js
I'm using Bootstrap with dropzone.js to enable that users can upload images by drag & drop.
Therefore, I created a drop zone which is working fine including the upload even with multiple images.
But now, I want to crop the images before I upload…

equalsound
- 187
- 1
- 2
- 15
1
vote
1 answer
how to use fengyuanchen cropper for multiple images
I'm creating the the image cropper by using fengyuanchen cropper library it is work as well but I want to use it for multiples images as the below screenshot But it'm simply difficult for me to reinitialize this plugin because it support only one…

DMS-KH
- 2,669
- 8
- 43
- 73
0
votes
0 answers
How can I write a strapi plugin that extends media library functionality?
I am facing a problem on the media library for strapi. For an upcoming project I would need to extend the cropping functionality of the strapi media library. Up until now it only seems to support free cropping but it would be nice if I could define…
0
votes
0 answers
How do I get the actual selection from cropper.js
I have a React app using cropper.js and I have this basic structure
…

Pizzaboy
- 331
- 2
- 14
0
votes
0 answers
How to correctly submit a form via ajax containing a resized image with the cropper library even without selecting an image
I have a problem with my code, I have a form that contains data and images that can be resized from the cropper library. My problem is that when I submit the form without selecting an image, my ajax call does not work properly.

Carlos Kanika
- 21
- 3