官术网_书友最值得收藏!

Controlling default image sizes

You may be wondering about those image sizes that I mentioned a couple of paragraphs earlier. What if you want bigger or smaller thumbnails? Whenever you upload an image, WordPress creates three versions of that image for you. You can set the pixel dimensions of those three versions by opening Settings in the main sidebar menu, and then clicking on Media. This takes you to the Media Settings page:

Here, you can specify the size of the uploaded images for the following:

  • Thumbnail size
  • Medium size
  • Large size

If you change the dimensions on this page and click on the Save Changes button, only the images you upload in the future will be affected. Images you've already uploaded to the site will stay at their original thumbnail, medium and large versions. It's a good idea to decide what you want your three media sizes to be early on in your site's lifespan, so you can set them and have them applied to all images, right from the start.

Another thing about uploading images is the craze for HiDPI displays, also called Retina displays, or Ultra High Definition (UHD). Currently, WordPress is a kind of a transitional phase when it comes to images and being in tune with modern display technology; retina-ready functionality was introduced not that long ago in WordPress 3.5. In short, if you want to make your images retina compatible (meaning that they look good on iPads, modern Android phones, and other devices with HiDPI screens), you should upload the images at twice the intended dimensions. For example, if you want your image to be presented as 800 pixels wide and 600 pixels high then upload it as 1600 pixels wide and 1200 pixels high. WordPress will manage to display it properly anyway, and whoever visits your site from a modern device will see a high-definition version of the image. In future versions, WordPress will provide a more managed way of handling retina-compatible images.

主站蜘蛛池模板: 汝州市| 平舆县| 黄浦区| 章丘市| 保定市| 东平县| 墨竹工卡县| 莎车县| 乐清市| 普定县| 平安县| 清苑县| 涡阳县| 周口市| 岗巴县| 南充市| 乌鲁木齐市| 墨脱县| 西宁市| 翁源县| 蚌埠市| 大洼县| 瑞安市| 连南| 唐海县| 宣化县| 哈巴河县| 龙井市| 天全县| 邢台市| 龙州县| 浮山县| 临潭县| 九龙城区| 祁阳县| 远安县| 黎城县| 浪卡子县| 贵南县| 贵港市| 闽侯县|