node imageable 用于express和connect的按需图像处理中间件
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插入您的应用程序,只需在路由器上方
下载地址
用户评论