Package for Atom
MIT License
Fill image size automatically.
/images/sample.png
(requires document_root
property in project.json)images/smaple.png
http://example.com/images/sample.png
//example.com/images/sample.png
(requires protocol
property in project.json)ctrl-i
or ctrl-i enter
: Fill width and heightctrl-i /
: Fill width and height as halfctrl-alt-i
or ctrl-alt-i enter
: Fill widthctrl-alt-i /
: Fill width as halfctrl-shift-i
or ctrl-shift-i enter
: Fill heightctrl-shift-i /
: Fill height as halfOverride keymap with Atom > Open Your Keymap
.
When you specify src
absolute or protocol-relative url, you can create project.json
at the project root.
document_root
: Used for resolving absolute url. Default is ''
.protocol
: Used for resolving protocol-relative url. Default is 'http'
..
├──public # Document root
│ └──index.html # Files
└──project.json # Configuration for html-img
{
"document_root": "public",
"protocol": "https"
}