Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
hexo-filter-variant-images
Advanced tools
It is a Hexo plug-in for generating thumbnails etc. using ImageMagick.
Since you can freely set arguments, you can generate various kinds of images as well as thumbnails.
npm install hexo-filter-variant-images --save
# variant images
variant_images:
cmd: 'magick'
match: '**/*.{jpg,gif,png}'
match_options:
debug: true
exclude: 'static/**/*'
priority: 5
items:
- suffix: '@preview'
extension: 'gif'
size: '20x20'
blur: '1.5'
posterize: '16'
args: '-resize $size -blur $blur -posterize $posterize'
- suffix: '@small'
size: '120x120'
args: '-resize $size'
Run command. The default value is magick
.
Also I am only checking the operation with magick
.
Specify the path of the target image file with glob.
The default value is **/*.{jpg,gif,png}
Option for minimatch. The default value is empty.
For details Minimatch#options
Specify the path of the file to be excluded with glob. The default value is empty.
Specify the priority of the filter by numerical value. The default value is 5
.
For details Filter | Hexo
Variations to generate. Required items are suffix, args
Suffix of the generated image.
Extension of the generated image. If unspecified, it will have the same extension as the original image.
Arguments to pass to the command. If you write it like $size
, you can refer to the settings in the same item.
items:
- suffix: '@preview'
extension: 'gif'
size: '20x20'
blur: '1.5'
posterize: '16'
args: '-resize $size -blur $blur -posterize $posterize'
- suffix: '@small'
args: '-resize 120x120'
FAQs
A plug-in to generate variant images
We found that hexo-filter-variant-images demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.