question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cropped Image is not return by file picker

See original GitHub issue

filestack-js 0.10.1

When I call fsClient.pick({ fromSources: ["local_file_system", "url", "facebook", "instagram", "googledrive", "dropbox", "evernote", "flickr"], maxSize: 102400000, maxFiles: 1, minFiles: 1, transformations: { crop: { force: true, aspectRatio: 1.778 }, rotate: true }, accept: ["image/*"] }).then(this.imageUploaded);

`imageUploaded({ filesUploaded, filesFailed }) {

    const { onChange } = this.props;
    if (filesFailed.length) {
        message.error('Image failed to upload');
        return;
    }
    console.log(filesUploaded)

}`

The file that is returned is not the cropped image but rather the full image that was selected

Steps

  1. Crop screen shot 2017-12-18 at 10 50 00 am

  2. Upload screen shot 2017-12-18 at 10 50 05 am

See the result here https://cdn.filestackcontent.com/w6LGhDJ6QAupRylsjQnT

Upload Id “cdf9eb61cb1aeb87c781af10291c1c97”

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
velveteercommented, Dec 18, 2017

@deliriousrhino I am not entirely certain but this might be a bug with the background uploading. Can you pass uploadInBackground: false and confirm if this behavior persists?

0reactions
pcholujcommented, May 31, 2019

Hi, this is fixed in newer releases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to set cropped image in input field as a file
Croppie is using canvas.drawImage(...) to manipulate images so you can not upload the images as you upload a file using a file input...
Read more >
unable to get filename of an image in android #1078
If we try to hack around it and extract the name from path , the name from path is not the same as...
Read more >
Use the Image web part
Crop your image ... You can crop an image without or without using pre-set aspect ratios. ... Click the image you want to...
Read more >
Crop image - MATLAB imcrop
[ xrefout , yrefout ,___] = imcrop(___) also returns the image limits of the input image in xrefout and yrefout . imcrop(___) without...
Read more >
JavaScript File Picker
Using this parameter you can specify image dimensions of the file. It works only for JPEG, PNG, and BMP files. Local and cropped...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found