Giter VIP home page Giter VIP logo

cropbox's People

Contributors

hongkhanh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cropbox's Issues

Make thumbBox Resizable

Hey,

This really isnt an issue but more like a question. Is there a way to make the thumbBox resizable? I was trying to use jQuery UI resizable function but that doesnt seem to work for me. Any sugguests/Thoughts?

TR

Drag not working properly after select more than 1 image simultaneously

select one image and move image in crop area then without cropping this image select another image and then after move image in crop area then it not drag properly
second time image note move with cursor
image moving speed is more than cursor moving speed.
if you select image third time without cropping previous image or without reload the page then image moving speed in three time faster then cursor.
so whats wrong with this jquery i don't know.

Prevent multiple click for cropping

Hello there i have issue

  1. How can i make when users click crop the images crop will stay in the images preview (avatar.png) so images will not double
  2. How can i only crop one times, yeah i know why click button crop add auto images cause line index.html 62, but please review and guide me or just create simple demo like above, thanks

Note : Croping using jquery

safari browser issue

hello ,, its not working on safari browser...when we choose file then file has been choosen but not display and also not saved .............plz help me urgent

Thanks

Need clear old canvas before return in the getDataURL() function

To keep a browser thin and clear, especially in mobile devices, you should destroy/remove old canvas before return in getDataURL() function.
Some think like that:

var imageData = canvas.toDataURL('image/png');
context.clearRect(0, 0, canvas.width, canvas.height);
return imageData;

Cross-browser Issues

Could you please let me know what the cross-browser compatibility is for this image cropper? I am currently experiencing issues in IE8 and IE9, as well as Safari. Look forward to your feedback.

Multiple Instance on one page

Hello Here,

I'm trying to setup multiple instance of this cropbox on on page, the problem is on the second one, there is a problem with the events the image keeps moving, Like I'm dragging it but I'm not :/

Any idea ?

problem cursor gets stuck when you drag drop

load a modal and the element is hidden
It works right the first time.

When opening for the second time everything seems fine modal
but the cursor gets stuck when you drag drop

What is the problem?

crop

Set cropbox width and height

Apparently, it is not possible to determine the dimensions of the resulting image. If it is possible, tell me how. If it is impossible, how can I make it possible?

saving cropped image to folder

I would like to save the cropped image to a folder using the traditional MOVE_UPLOADED_FILE, but because the cropped image is not selected from a FILE input, this is not working,

Here is the steps the user will take

  1. Select input to be cropped (using the given file upload input)
  2. Click "Crop" ( This shows the cropped image in the #coverimagebase image element, hiding the .imageBox class )
  3. Click "Upload"

Does anyone know how i can go about uploading the image in the IMG element to a folder, else use the already-created img (getBlob) from the plugin?

Need help in mouse zoom-out

Hi,

I couldn't be able to zoom-out if I zoom-in to a vary large size using mousewheel.
It actually zooms in even if I try to zoom it out using mousewheel.

Any help would be greatly appreciated.

Thanks

Upload crop result

This is a great tool. Very simple and easy to use.

Is it possible to upload the resulting cropped image? I have a script that can accept the file, but need a way to inject it into a form field to be uploaded.

Plugin doesn't work well with borders

Given the same design as your demos (http://cssdeck.com/labs/t8bdodvj), you would expect a cropped image of 200x200px, however the resulting cropped image is actually 198x198px.

I've attempted to account for this by setting the thumbBox to 202x202px, however the plugin doesn't position the image correctly as it's attempting to align under the border of thumbBox instead of within the crop region.

Change background to white

Your code can crop a png file with transparent background but it turns it into black background, Is it possible to upload a png file with transparent background and turns into white bg. Thanks. Cheers.

It has an error at code 'this.files=[]'

The error message is:
Uncaught TypeError: Failed to set the 'files' property on 'HTMLInputElement': The provided value is not of type 'FileList'.
at HTMLInputElement. (index.html:60)

Support for multiple files

Having trouble trying to figure out how to use Cropper on a page with multiple upload instances and am not sure it's possible, since the saved results are being written to the window object.

Is this possible?

If so, can you point me to any example code with multiple cropper instances on the same page?

scrolling entire page

When we do zoom in/out image by using mouse, the entire page get scrolled instead of particular image. This will occur only when we have more content in page. Is that any way to solve this issue?

Thanks,

on Mouse Up, sometimes the Image still move while Mouse move

Instead of having "mousemove" Event listen for all the time
el.on('mousedown', imgMouseDown);
//el.on('mousemove', imgMouseMove);
$(window).on('mouseup', imgMouseUp);

/*******************************************************************************************/
Adjustment as below
imgMouseDown = function(e)
{
el.on('mousemove', imgMouseMove);
}

imgMouseUp = function(e)
{
el.off('mousemove');
}

/***********************************************************************************************/
I have also change from "bind" to "on"

Not working with HTTPS protocal

Hi,

I have started using this cropbox library in my project, it worked fine on local web application but when i deployed this changes on my website which have HTTPS protocol integrated, it stopped working on that page.

It is giving me error "The page was loaded over HTTPS, but requested an insecure script . This request has been blocked; the content must be served over HTTPS.".

Kindly, help me to resolve this issue.

Thanks.

Crop doesnt work on mobile

For some reason you can't move the image round on a mobile, either up or down! Anyone know why and how can this be fixed?

Thanks

Blur images

after crop ,this is return blurry images.Please help me to solve this issue.

How I can use Cropbox.js to upload avatar to Server?

I am using Cropbox to upload avatar from Cient to Server.But When I have readed document, I dont't know how to use function getBlob and function getDataURL?Can anyone may gave me a code example?Forgive I know a little fo JavaScript!
Thansk a lot!

Rotate Image

Hi, Could you provide me an example of image rotation with javascript, Please?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.