Hexo Image Sizes

screenshot of Hexo Image Sizes
hexo

Generate multiple images sizes (thumbnail, body, etc.) for each source image in Hexo

Overview

If you're running a static blog on Hexo, you know how important it is to have images that not only look good but also load quickly for your readers. The hexo-image-sizes NPM package is an innovative solution that allows you to generate multiple resolutions for your images effortlessly. With the powerful sharp image library working behind the scenes, this plugin simplifies managing image sizes, saving you both time and effort in the long run.

The beauty of hexo-image-sizes lies in its flexibility. Whether you're tweaking themes or needing different image profiles for various sections of your site, this plugin adapts seamlessly. You can configure your image profiles once and let the plugin handle the rest, ensuring optimal loading times and a better user experience.

Features

  • Dynamic Image Resizing: Automatically generate multiple sizes for each image based on your specified profiles, saving you from manual resizing efforts.

  • Easy Profile Configuration: Set up custom image profiles in your site’s configuration file, allowing for tailored image sizes that fit different use cases.

  • Smart Enlargement Options: Choose whether to allow the plugin to enlarge smaller images, giving you control over image quality and appearance.

  • EXIF Data Rotation: The plugin can auto-rotate images based on their EXIF data, ensuring that your images are always displayed correctly without extra manual adjustments.

  • Default Profile Handling: Establish a default image profile that will be used when no specific profile is assigned, streamlining your image management further.

  • Linking Captivatingly: Option to wrap images in links to their original files, enhancing user engagement and keeping your content connected.

  • Automatic Aspect Ratio Adjustment: Maintain the natural look of your images by only specifying one of the dimensions (width or height), with the other adjusting automatically.

  • Patterns for Selective Processing: Use regular expressions to define which images to process, giving you flexibility and control over your image management strategy.

hexo
Hexo

Hexo is a static site generator built with Node.js that enables developers to create fast and efficient websites using Markdown, EJS, and Stylus. It offers features such as server-side rendering, plugin support, and easy deployment to hosting services like GitHub Pages and Netlify.