
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Jekyll tag-plugin to read image sizes from static assets and output in many formats.
Uses:
width
, height
or width + "x" + height
Samples:
{% imagesize image:width %}
350
{% imagesize image:opengraph %}
<meta property='og:image:width' content='350'/><meta property='og:image:height' content='32'/>
{% imagesize image:img %}
<img src='/assets/logo.jpg' width='350' height='32'>
Add this to your Gemfile:
gem "jekyll-image-size"
Add this to your _config.yml:
plugins:
- image-size
Jekyll-image-size uses the fastimage gem. It supports every type fastimage support. As of right now, that means:
gif, jpeg, png, tiff, bmp, ico, cur, psd, svg, webp
The imagesize
takes one parameter. That parameter has the form:
source[:format[/divide-by-number]][?uri-encoded-params][ rest...]
source is a string and can be one of:
formats:
WxH
{width: W, height: H}
[W, H]
W, H
W
H
width: Wpx; height: Hpx;
width='W' height='H'
<meta property='og:image:width' content='W'/><meta property='og:image:height' content='H'/>
<img src='/assets/logo.jpg' width='W' height='H'>
divide-by-numbers:
uri-encoded-params:
rest:
Format examples:
{% imagesize source %} >> 652x435
{% imagesize source:size %} >> 652x435
{% imagesize source:json %} >> {width: 652, height: 435}
{% imagesize source:array %} >> [652, 435]
{% imagesize source:list %} >> 652, 435
{% imagesize source:width %} >> 652
{% imagesize source:height %} >> 435
{% imagesize source:css %} >> width: 652px; height: 435px;
{% imagesize source:props %} >> width='652' height='435'
{% imagesize source:opengraph %} >> <meta property='og:image:width' content='350'/><meta property='og:image:height' content='32'/>
{% imagesize source:img %} >> <img src='/assets/logo.jpg' width='350' height='32'>
Scaling examples:
{% imagesize source:size/2 %} >> 326x218
{% imagesize source:size?width=600 %} >> 600x400
{% imagesize source:size?height=200 %} >> 300x200
Image source examples:
{% imagesize /assets/logo.jpg %}
{% assign image = site.image %}
{% imagesize image %}
Combined examples:
{% imagesize /assets/logo.jpg:opengraph %}
{% imagesize /assets/logo.jpg:css/2 %}
{% imagesize image:width/2.5 %}
{% imagesize image:height?width=500 %}
{% imagesize /assets/logo.jpg:img alt='my alt string' %}
# <img src='/assets/logo.jpg' width='350' height='32' alt='my alt string'>
jekyll-image-size is MIT licensed.
jekyll-image-size was produced at GenUI.co.
FAQs
Unknown package
We found that jekyll-image-size 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.