|
|
|
@ -25,7 +25,7 @@ module.exports = function (gm) { |
|
|
|
|
'format': { key: 'format', format: '%m' } |
|
|
|
|
, 'depth': { key: 'depth', format: '%q' } |
|
|
|
|
, 'filesize': { key: 'Filesize', format: '%b' } |
|
|
|
|
, 'size': { key: 'size', format: '%wx%h', helper: 'Geometry' } |
|
|
|
|
, 'size': { key: 'size', format: '%wx%h ', helper: 'Geometry' } |
|
|
|
|
, 'color': { key: 'color', format: '%k', helper: 'Colors' } |
|
|
|
|
, 'orientation': { key: 'Orientation', verbose: true } |
|
|
|
|
, 'res': { key: 'Resolution', verbose: true } |
|
|
|
@ -245,7 +245,9 @@ module.exports = function (gm) { |
|
|
|
|
var helper = gm.identifyHelpers = {}; |
|
|
|
|
|
|
|
|
|
helper.Geometry = function Geometry (o, val) { |
|
|
|
|
var split = val.split("x"); |
|
|
|
|
// We only want the size of the first frame.
|
|
|
|
|
// Each frame is separated by a space.
|
|
|
|
|
var split = val.split(" ").shift().split("x"); |
|
|
|
|
o.size = { |
|
|
|
|
width: parseInt(split[0], 10) |
|
|
|
|
, height: parseInt(split[1], 10) |
|
|
|
|