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

Result size{width:n, height:n} not working #790

Open
markcofano opened this issue Jun 21, 2023 · 2 comments
Open

Result size{width:n, height:n} not working #790

markcofano opened this issue Jun 21, 2023 · 2 comments

Comments

@markcofano
Copy link

Expected Behavior

When I crop and image and save to disk, the resulting image is not the size I expect.

Actual Behavior

The image is the original size of the image pasted

Steps to Reproduce the Problem

1.Find an image of size larger than viewport
1.Paste and save to disk
1.Inspect image on disk
size:'viewport' works as expected but image on disk it too small
size{width:800,height:400} produced an image on disk that is ORIGINAL SIZE, not as specified

also tried...

size{width:800} does not work at all
size{width:800,height:} does not work at all
size{800} or size{800,400} does not work

Example Link

[Please recreate your issue using JSbin, JSFiddle, or Codepen.

Specifications

  • Browser:
  • Version:
@markcofano
Copy link
Author

Croppie Version is 2.6.5 loaded by CDN

https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.5/croppie.min.css

@theodorejb
Copy link

In your JSFiddle example, result size is being set to the string '{width:800,height:450}', but it should be an object (remove the quotes to change the string to an object).

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