tr_imgaddsize -- add width and height to <img src=...>
tr_imgaddsize [-hpv] html-files
tr_imgaddsize opens all files listed on the command line and edits them if needed. All <img src=...> get width and height added if not already there. This works only for relative links (something like src=../images/cool.png)
File access permissions are preserved.
-h short help
-p print to stdout and do not modify any files.
-v verbous messages about html errors.
tr_imgaddsize file.html
tr_imgaddsize is part of the HTML::TagReader package and was written by Guido Socher
This program needs Image::Size from http://www.cpan.org/authors/id/R/RJ/RJRAY/
To install HTML::TagReader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::TagReader
CPAN shell
perl -MCPAN -e shell install HTML::TagReader
For more information on module installation, please visit the detailed CPAN module installation guide.