Image.class.php thinkphp function of class

Thumbnails

  1. Create Object $ image = new \ Think \ Image ();
  2. Open the original $ image-> open ( 'original path');
  3. Thumbnail and save $ image-> thumb (150,150) -> save ( 'target picture path');

Guess you like

Origin www.cnblogs.com/mofei12138/p/11570605.html