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

Canvas Aspect Ratio for Instagram Story #3211

Open
ErkanKabil opened this issue Oct 24, 2024 · 0 comments
Open

Canvas Aspect Ratio for Instagram Story #3211

ErkanKabil opened this issue Oct 24, 2024 · 0 comments

Comments

@ErkanKabil
Copy link

I have a project written with React. In this project, the user can share the current screen as a story on instagram. here I first convert the html screen to canvas and then to image and share it that way.

The problem here starts in the part of converting the screen to canvas. I want the size of the generated image to be suitable for instagram. here I want to produce canvas in accordance with the 9 / 16 ratio. if I can crop the image I produce from the top and bottom, there will be no problem, but I don't know how to do it.

Example Image; this image's aspect-ratio is : 215:466

download (6) (1)

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

1 participant