Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

width and height with node js

gm = require('gm');

// obtain the size of an image
gm('test.jpg')
.size(function (err, size) {
  if (!err) {
    console.log('width = ' + size.width);
    console.log('height = ' + size.height);
  }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #width #height #node #js
ADD COMMENT
Topic
Name
5+7 =