We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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))
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
The text was updated successfully, but these errors were encountered:
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
size
Could be possible?
Thanks
Sorry, something went wrong.
Hello, you will have to use an image-processing-dedicated library, such as Pillow, to crop an image, using the crop() method for example.
crop()
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
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: