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

Problem with sizing #63

Closed
aramonpa opened this issue Mar 23, 2022 · 3 comments
Closed

Problem with sizing #63

aramonpa opened this issue Mar 23, 2022 · 3 comments

Comments

@aramonpa
Copy link

Hello guys,

I'm trying to resize an image, my monitor is 1920x1080p but I want to crop the image.

For example:
hti.screenshot(html_file = 'index.html', save_as = 'out.jpg', size = (600, 600))

Where starts to crop the image size parameter?
My screenshot is getting cropped badly and only is working if I set my full screen resolution.

Kind regards

@aramonpa
Copy link
Author

Hello again,

I read the documentation again, I think that I missunderstood size parameter.
Size parameter specifies the size of the image and not crops the image

Could be possible?

Thanks

@vgalin
Copy link
Owner

vgalin commented Mar 25, 2022

Hello, you will have to use an image-processing-dedicated library, such as Pillow, to crop an image, using the crop() method for example.

@aramonpa
Copy link
Author

Hello vgalin

Yes, supposed that.
I already use crop() method of Pillow.

By the way, thanks for your answer, I though that size param was for cropping images

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