Fix parse image size

This commit is contained in:
mattn
2013-04-06 22:40:19 +09:00
parent 7f674cd356
commit f1daca4fa5
3 changed files with 4 additions and 4 deletions

View File

@@ -235,9 +235,9 @@ endfunction
function! zencoding#util#imageSizeWithImageMagick(fn)
let img_info = system('identify -format "%wx%h" "'.a:fn.'"')
let img_size = split(img_info, 'x')
let img_size = split(substitute(img_info, '\n', '', ''), 'x')
let width = img_size[0]
let height = substitute(img_size[1], '\n', '', '')
let height = img_size[1]
return [width, height]
endfunction