bionhorizon.blogg.se

Command line image resize
Command line image resize















You have specified, the file will only be copied, and will not be resized. If the original file is smaller than the width Regardless of whether the original file is smaller, so you can link without worrying Waffle-medium.webp and waffle-woowee.webp All the files will be created, Waffle-medium.jpg and waffle-woowee.jpg as well as waffle-small.webp, Will take a file called waffle.jpg and create the files waffle-small.jpg,

command line image resize

Here is a example config file: width = 640 height = 360 height = 720 width = 1920 The section names can be whatever you want, theįinal images will be called $(imagename)-$(sectionname).jpg and $(imagename)-$(sectionname).webp. It can resize (or thumbnail) and rotate thousands of images in a go, at lightning speed, while saving significantly on storage.

#Command line image resize install#

To install the plugin, add lektor-image-resize to your plugins from the command line and create a config file: # add the plugin to lektorĬreate a config file called configs/image-resize.ini and addĪ few sections for images. imgp is a command line image resizer and rotator for JPEG and PNG images. You can use the images like that: Installation

command line image resize

Use this plugin if you want to be able to link to full-size images in your content, but still want thumbnails to be generated for the link itself.įor example, you may have an image called waffle.jpg, and to link to it in the content (not the template), but also show a thumbnail.Īll images will be converted to webp using Pillow. It will generate WEBP images in the same sizes using imagemagic.It will generate JPEG images in the sizes you configured of all images in your Lektor content using imagemagic.The difference between this plugin and the lektor thumbnail filter is that this plugin is converting all images and you don't need to have any references to the images in your templates. This plugin generates JPG and WEBP Images and Thumbnails in predefined sizes for any images in your Lektor content.















Command line image resize