설명
Specify Image Dimensions is a plugin that scans and inserts missing
width
andheight
in all<img>
tags. Specifying the dimension allows for faster rendering by eliminating the need for unnecessary re-flows and repaints. This is particularly helpful with website speed tools such as GTmetrix and Google’s PageSpeed.
Before
<img src="http://example.com/image.jpg" title="Some Title" />
<img src="http://example.com/vector.svg" class="svg" />
<img src="http://example.com/another-vector.webp" />
After
<img src="http://example.com/image.jpg" title"Some Title" width="100" height="25" />
<img src="http://example.com/vector.svg" class="svg" width="100%" height="auto" />
<img src="http://example.com/another-vector.webp" width="100%" height="auto" />
Contribute on GitHub
Want to help improve this plugin? Head over to our GitHub page
설치
- Upload the plugin to the
/wp-content/plugins/
directory. - Activate the plugin through the
Plugins
menu in WordPress. - Let it settle in a for a minute and be amazed.
If there are any issues or questions, head over to our FAQ or our Support page.
FAQ
- How does it work?
-
The plugin will scan the contents in your posts and automagically specify the image dimensions by adding the correct
width
andheight
. - Why is this important?
-
Specifying a
width
andheight
for all images allows for faster rendering by eliminating the need for unnecessary re-flows and repaints. This is particularly helpful with website speed tools such as GTmetrix and Google’s PageSpeed. More information can be found here. - I’d like to contribute to this plugin and help improve it
-
That’s easy! If you have a GitHub account, you’re more than welcome to share your contribution to our plugin which can be found here.
후기
기여자 & 개발자
“Specify Image Dimensions”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.
기여자자국어로 “Specify Image Dimensions”(을)를 번역하세요.
개발에 관심이 있으십니까?
변경이력
1.1.0
2016-01-29
* Fix: images with blank dimensions weren’t being detected
* Added support for additional img
attributes
=1.0.4 =
2016-11-28
* Fix: SVG and webP images were given 0
width and height
* Various code improvements
1.0.3
- 2016-09-01
- Fix: Thumbnail weren’t showing up in Pages
- Renamed plugin file from
index.php
tospecify-image-dimensions.php
1.0.2
- 2016-08-25
- Fix: Thumbnails weren’t showing in the Media library (thanks ramonjosegn)
1.0.1
- 2016-08-24
- Fix: Image dimensions were not being set
1.0.0
- 2016-08-21
- Initial release, huzzah!