-
Notifications
You must be signed in to change notification settings - Fork 82
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
1px difference between several cropped images' height #62
Comments
are you sure that the one missing pixel is not hidden by overflow? |
I'm talking about the files' dimensions - after creating a file from the base64 - not how they are rendered in the brower (sorry, I didn't give you enough details). |
i never had this issue, can you present codepen? WIth your setup on my project, tested 5-6 different files and all was correct |
Here is the codepen : https://codepen.io/vincent_ignis/pen/pdLoLN/ (Note: the picture in the codepen is 600x600, if you need to know) Edit: maybe something about rounding numbers? (Math.round) |
Test I've made:
(don't know if it can help) |
@igniscom @CrackerakiUA i had just posted a similar issue here #59 i just got on here to ask if @CrackerakiUA had figured it out and then I saw this one :D |
Yep, but no fix found right now. :/ |
I tried looking into it and debug it myself but it was way too time consuming. |
I have same problem with rectangular cropping, i am trying to get 800x420 dimension. But my result is still in 800x419. What's the problem, how can i fix it ? |
@CrackerakiUA @igniscom any movement here? |
I don't have in plans to check this issue in near future. This is not touching any of my projects and I don't have allot free time at the moment. |
I added an option to the directive that allows the user to force the aspect ratio on rectangles; it seems to solve the problem of the 1px distortion on certain files. (3076)
(3287)
(2899)
(2920)
|
Hello,
I'm using the directive with the following options :
<ui-cropper image="file" result-image="fileProcessed" area-type="rectangle" canvas-scalemode="full-width" aspect-ratio="1.25" result-image-format="image/jpeg" result-image-size="400"></ui-cropper>
The resulting image should be 400x320px.
However, sometimes it's resulting 400x319px.
Is there a reason for that, and a way to fix it ?
The text was updated successfully, but these errors were encountered: