tybro0103 / jwindowcrop Goto Github PK
View Code? Open in Web Editor NEWImage Cropping jQuery Plugin
Image Cropping jQuery Plugin
The targetHeight defined in pixel crops image of entirely different dimension. The image of dimension 2927x1378px when cropped with target heigt= 450 crops image of 993px.
Calling destroy() unbinds event handlers not created by jWindowCrop. For example, after calling destroy my Bootstrap dropdowns no longer work.
This can be fixed by namespacing the unbind(). Pull request incoming.
My crop is returning NaN data on event change:
{cropX: NaN, cropY: NaN, cropW: NaN, cropH: NaN, mustStretch: false}
Right now, it looks like this:
The plugin does not return the correct value of the cropX, cropY, cropH and cropW on firefox 30 and IE after I upload an image by ajax and append it to the dom.
It works perfectly in chrome.
I can get the right X,Y,W,H value if I don't change the picture. If I change to another picture, the W, H value will be the same value of the first picture.
You can see my code here:
If you click the set src to null button and then click the set src to another picture, you will see that the X,Y,W,H value is different from the right one.
I need to send cropped image to API how I can do this when I click on save button as in Facebook cover image.
How to scroll image in horizontal??
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.