About: Insert image size into html tag   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

First step is to make sure you have Perl installed and the Perl module Image::Size. Then all you need is to add this to your vimrc. " Get image size with F4 with perl Image::Size module. function! PerlImageSize() g/src normal $ normal N normal 2w perl << EOF use Image::Size; $jo = VIM::Eval("expand('')"); $size = Image::Size::html_imgsize("$jo"); VIM::Eval("setreg('a', '$size')"); EOF normal $ normal "ap endfunction nnoremap :call PerlImageSize()

AttributesValues
rdfs:label
  • Insert image size into html tag
rdfs:comment
  • First step is to make sure you have Perl installed and the Perl module Image::Size. Then all you need is to add this to your vimrc. " Get image size with F4 with perl Image::Size module. function! PerlImageSize() g/src normal $ normal N normal 2w perl << EOF use Image::Size; $jo = VIM::Eval("expand('')"); $size = Image::Size::html_imgsize("$jo"); VIM::Eval("setreg('a', '$size')"); EOF normal $ normal "ap endfunction nnoremap :call PerlImageSize()
Version
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1663(xsd:integer)
Category
  • Automated Text Insertion
Author
  • Rvco
Subpage
  • /201008
Complexity
  • basic
Created
  • 2010(xsd:integer)
ID
  • 1664(xsd:integer)
NEXT
  • 1665(xsd:integer)
abstract
  • First step is to make sure you have Perl installed and the Perl module Image::Size. Then all you need is to add this to your vimrc. " Get image size with F4 with perl Image::Size module. function! PerlImageSize() g/src normal $ normal N normal 2w perl << EOF use Image::Size; $jo = VIM::Eval("expand('')"); $size = Image::Size::html_imgsize("$jo"); VIM::Eval("setreg('a', '$size')"); EOF normal $ normal "ap endfunction nnoremap :call PerlImageSize()
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software