pqina / filepond-plugin-image-crop Goto Github PK
View Code? Open in Web Editor NEW๐ผ Add image crop instructions to files dropped on FilePond
Home Page: https://pqina.nl/filepond
License: MIT License
๐ผ Add image crop instructions to files dropped on FilePond
Home Page: https://pqina.nl/filepond
License: MIT License
The crop plugin seems to break TIFF uploads. When enabled and adding a TIFF file (image/tiff) I'm getting an "Uncaught (in promise)" error triggered on line 263. Could it be that loadImage(url).then(function(image) {
cannot actually handle TIFF files?
Hey guys. I've got this kind of warning just now.
How to reproduce:
yarn add filepond-plugin-image-crop
In results output:
warning " > [email protected]" has incorrect peer dependency "filepond@^3.0.0".
In the package.json of this plugin we have:
"peerDependencies": {"filepond": "^3.0.0"}
Which obviously (if there is no version related issues) should be changed to:
"peerDependencies": {"filepond": ">=3.x <5.x"}
Like in other plugins.
I'm trying to integrate filepond in an existing project where there is a crop center being set externally. Practically, the image should not be cropped and so I don't have the transform plugin enabled. When the crop center is set, I call file.setImageCropCenter({...})
to reflect in the preview properly which works great.
The problem is that it also tries to upload the newly cropped image (which is not really cropped) to the server again. I understand why you would want this when coupled with the transform plugin but I just want the preview.
process
method and short circuiting if they both equal 0.5
Adding a flag like uploadOnCrop
or something.
I'd be happy to submit a PR for this but I'm a little lost looking through the source code where the call to process is from this plugin ๐คท
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.