Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically crop selected image to a square #31

Open
Ludwe01 opened this issue Oct 31, 2018 · 3 comments
Open

Automatically crop selected image to a square #31

Ludwe01 opened this issue Oct 31, 2018 · 3 comments

Comments

@Ludwe01
Copy link

Ludwe01 commented Oct 31, 2018

Hi, the creativetimofficial/material-bootstrap-wizard is fantastic I have to admit. I am not familiar with JQuery and JavaScript. I would like the image to be cropped to a square before it can be sent to the php processing script. Is there an easy way to do this. The profile pictures on my website display well when the images are square. Thank You!

@dragosct
Copy link
Member

dragosct commented Nov 1, 2018

Hi, @Ludwe01! Thank you for using our products. We don't have any image on this wizard, but anyway, when we want to have some different forms of images we just modify them from photoshop, building a script to do this takes some time.

@Ludwe01
Copy link
Author

Ludwe01 commented Nov 1, 2018

Hi @dragosct10 , I understand and thanks for your reply. How difficult would it be to integrate what you have done with JCrop. Because what I want is to have a user select an image, Crop it automatically with a plugin like JCrop then send it to the php processing script. I have built the whole program fine but I just need the images cropped to a square. Are there any tutorials you can maybe recommend?

@dragosct
Copy link
Member

dragosct commented Nov 2, 2018

Hi! Maybe you can use a js code like this for cropping the images.

Regards,
Dragos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants