npm image to LM hash 1

npm image to LM hash

var jp2a = require( "jp2a" ); jp2a( [ "oktocat.jpg", "--width=50", "--background=light" ],  function( output ){    console.log( output );}); /*               ..',,'..          ,okXNNNNNNNNNNKkl,       cONNNNNNNNNNNNNNNNNNNNO:    .dNNNNNNNNNNNNNNNNNNNNNNNNNXo   cXNNNK;:oONNNNNNNNNNNNOo:;XNNNX:  xNNNNNc     '.     ..'     oNNNNNo dNNNNNNo                    xNNNNNNl,NNNNNNk                      ONNNNNN.xNNNNNN.                      .NNNNNNo0NNNNNX                        NNNNNNkkNNNNNN.                      ,NNNNNNd:NNNNNNO                     .0NNNNNN, ONNNNNNKc.                .lXNNNNNNk .0NNd,l0NNKxo:        cokKNNNNNNNNO   kNNN:.d0NNK;        lNNNNNNNNNNx    ;KNNl.. ..         ,NNNNNNNN0,      ,kNNX00K.        ,NNNNNNx'         ;d0NN.        ,NN0o,             .          .*/

Here is what the above code is Doing:
1. Requiring the jp2a module
2. Calling the jp2a function with the following arguments:
– The path to the image file
– The width of the image
– The background color
3. Printing the output to the console

Similar Posts