1. 首页
  2. 考试认证
  3. 其它
  4. node imageable 用于express和connect的按需图像处理中间件

node imageable 用于express和connect的按需图像处理中间件

上传者: 2024-09-08 00:20:43上传 ZIP文件 142.71KB 热度 7次
Imageable在做什么?您可以将imageable放入您的express应用程序中,它充当中间件。调用特定的URL(见下文)将返回调整大小和裁剪的图像。我需要什么?除了您还需要和其他一些用于图像格式处理的库。在Mac上,这是一个相当简单的任务: brew install imagemagick如何让它运行。在您的Express应用程序中,您会找到如下所示的部分: app . configure ( function ( ) { app . use ( express . bodyParser ( ) ) app . use ( express . methodOverride ( ) ) //... app . use ( app . router ) } )要将imageable插入您的应用程序,只需在路由器上方
下载地址
用户评论