Skip to content

ejdanderson/wp-hidpi-images

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP HiDPI Images

WP HiDPI Images is an easy to use plugin that serves images which look good on both a normal screen and HiDPI displays. It generates and serves 2x versions of the image sizes defined by your theme or plugins. All of this is done behind the scenes, there is no settings to set or additional image size to select when inserting media into a post.

2x images of non cropped sizes will be created from the original image. If you do not upload an image that is at least 2x the defined image sizes, it will not create a 2x version; the full sized image will be served instead of a 2x version. Cropped image sizes will always generate a 2x version based off of the original image even if the 2x version dimensions are larger than the original image.

FAQ

  • If I deactivate the plugin, will my images still work?

  • Yes. This plugin does not change any files, it only creates new ones and filters them in where appropriate.

  • Why didn't the plugin generate a 2x version of the image?

  • The plugin will only generate 2x images sizes if the original image is at least 2x the dimensions of the defined image size.

Installation

  • Activate the plugin, it'll handle the rest

Pre Existing Images

  • Existing media will not have the 2x sizes automatically generated. To do this it is recommended to use the Regenerate Thumbnails plugin.
  • Cropped images that have been inserted into the content and have not had their thumbnails regenerated will be replaced with the full version of the image with a forced max height and width.

About

Create and insert high resolution images to support high DPI displays.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%