-
Notifications
You must be signed in to change notification settings - Fork 51
Need to load the image inside canvas without chopping off #37
Comments
Even after giving AspectRatio = 0 the canvas still cut of some part of the image. |
Did you find somewhat of a solution? i currently got the same issue. |
@Fridthjof Nothing particularly. But I found out that if we give the container height and width same as the original image aspect ratio it loads up fine. As the high resolution images go out of the window if I try to give the same height dynamically by getting the original height now I do resize the image using ngx-pic as per my container width and load the image so I get the exact image. |
@Fridthjof reference link where I have used the editor |
I Fixed it by dynamically setting aspectRatio, by dividing the uploaded image height and width and inserting that value into the aspectRatio option. |
Yes we could do that but in my case I had the zoom event too in edit mode.
But it was not showing completely if I create that way so. Can you please
share the snippet incase if that works for my scenario too
…On Wed, Oct 31, 2018, 8:33 PM Emil Fridthjof ***@***.*** wrote:
I Fixed it by dynamically setting aspectRatio, by dividing the uploaded
image height and width and inserting that value into the aspectRatio option.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AqXe2Pyq_pG1aYv60-wOjx3A8ZmLOoq5ks5uqbu9gaJpZM4YBZCR>
.
|
Sure. Component that uses the lib.
HTML.
My image-editor lib
My image-editor HTML
|
@eshwerintouch @Fridthjof have u solved image chopping issue ? i am also facing this issue |
Hi team,
The library was very nice. But I see that the original image was chopped off on top and bottom.
I mean that the image width was completely fine but it was not covering the all content when it comes to height. Some of the contents on top and bottom of the image was deleted when it was on edit mode.
Please fix it OR let me know if there's any option to load it completely.
The text was updated successfully, but these errors were encountered: