📄 crop.php
字号:
<?phpheader('Content-Type: application/json');/* yadl_spaceid - Skip Stamping */include('exampleslib.inc');// Use Services_JSONrequire_once('JSON.php');$json = new Services_JSON();$h = getRawData('height');$w = getRawData('width');$t = getRawData('top');$l = getRawData('left');$data = 'Height: '.$h;$data .= ', Width: '.$w;$data .= ', Top: '.$t;$data .= ', Left: '.$l;$response = new stdclass();$response->data = '<p>This example does not really resize, but here is the data we received: '.$data.'</p><p>If we used ImageMagick & PHP we could issue this command: convert yui.jpg -crop ['.$w.' x '.$h.' + '.$l.' + '.$t.'] yui-new.jpg</p>';echo($json->encode($response));?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -