This article describes the method of php to implement web page screenshot by executing the CutyCapt command. Share it for your reference, as follows:
Exec commands using php
PS. By default, the exec function is disabled. Open to check whether the disabled_function contains this or not. If there is, remove it.
One question in this is my picture only has the first screen, so crop the picture
Use convert -crop for cropping
Use convert -resize for image scaling
For more information about PHP related content, please check out the topic of this site:Summary of PHP graphics and picture operation skills》、《Introduction to PHP basic syntax》、《Summary of PHP operations and operator usage》、《PHP object-oriented programming tutorial》、《Summary of PHP network programming skills》、《Complete collection of PHP array (Array) operation techniques》、《Summary of usage of php strings》、《PHP+mysql database operation tutorial"and"Summary of common database operation techniques for php》
I hope this article will be helpful to everyone's PHP programming.