Posts

Showing posts from 2016

Upload Multiple Image with thumbline In Asp.net

Gallary.aspx < div class ="control-group">   < label class ="control-label"> Select Image: </ label >    < div class ="controls">     < asp : FileUpload ID ="fuslider" Multiple ="Multiple" runat ="server" CssClass ="styled" />  </ div > </ div > < div class ="form-actions">    < asp : Button ID ="btnsubmit" Text ="Submit" runat ="server" CssClass ="btn btn-primary"      ValidationGroup ="cat" OnClick ="btnsubmit_Click" />     < asp : Label ID ="lblmsg" runat ="server" CssClass ="help-block"></ asp : Label > </ div > Gallary.aspx.cs if (fuslider.HasFile)  {    for ( int i = 0; i < Request.Files.Count; i++)     {        HttpPostedFile PostedFile = Request.Files[i];        string

Generate image ,pdf and Video Thumb using node js

      Using  imagemagick  Generate image thumb                 var im = require( 'imagemagick' );         var image = random() + '.png' ;         var imagepath = 'uploads/images_thumb/' + image;         var pathToFile = path.join(__dirname, req.files[i].path),             pathToSnapshot = path.join(__dirname, '/' + imagepath);         im.resize({             srcPath: pathToFile               , dstPath: pathToSnapshot               , width: 150               , height: 150               , quality: 0               , gravity: "North"         }, function (err, stdout, stderr) {             if (err) {                 console.log(err);             }             console.log( 'resized image ' , pathToSnapshot);             //res.json(pathToSnapshot);         });     Using Gm  Generate Pdf thumb                 var gm = require( 'gm' );       var image = random() + '.p