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

Crop problem in still Images #7

Closed
ni3mumbaikar opened this issue Aug 2, 2021 · 2 comments
Closed

Crop problem in still Images #7

ni3mumbaikar opened this issue Aug 2, 2021 · 2 comments

Comments

@ni3mumbaikar
Copy link

I checked cropping static Image with new WSF.Sticker(buffer,{crop: true}); the Image was stretched and same when used with animated:true for gifs sticker returned with perfectly centerCropped Image.

crop:true is stretching/squeezing static Images and centerCropping gifs I need to centerCrop static images too any workaround to achieve this ?

@AlenVelocity
Copy link
Owner

This has been fixed in 4.x. You can now achieve this with

new WSF.Sticker(buffer, {
    type: 'crop'
})

@ni3mumbaikar
Copy link
Author

Solved thanks @AlenSaito1 !

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