srcset 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global srcset --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local srcset --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=srcset&version=1.0.0
nuke :add-package srcset --version 1.0.0

dotnet-srcset

CLI for creating sets of responsive images for the web

Installation

dotnet tool install -g srcset

Usage

srcset {file or directory} [-r] [space delimited set of widths]

e.g.

srcset IMG_9687.jpg 500 1000

will resize the image to 500 and 1000 pixels wide, with the filenames IMG_9687-0500.jpg and IMG_9687-1000.jpg

srcset all_images/

will resize all images in the all_images directory (recursively if -r is included) to each of the default widths

Default widths

  • 240px
  • 320px
  • 480px
  • 640px
  • 800px
  • 960px
  • 1280px
  • 1600px
  • 1920px
  • 2400px

File types

dotnet-srcset uses ImageSharp under the hood, and therefore should theoretically support all file types that ImageSharp supports by entering the filename as a parameter, however when entering a directory as a parameter, file types are limited to:

  • jpg/jpeg
  • png
  • bmp
  • gif
  • tif/tiff

Feel free to contribute an update that adds more file types to Arguments.ValidExtensions!

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
5.0.0 1,136 11/20/2023
4.1.0 1,543 11/30/2021
4.0.0 1,469 11/12/2021
3.2.3 1,850 11/9/2021
3.2.2 1,657 10/28/2021
3.2.1 1,448 10/26/2021
3.2.0 1,645 10/26/2021
3.1.1 1,610 9/9/2021
3.0.3 1,508 9/9/2021
2.0.0 2,476 7/23/2020
1.0.0 2,798 9/24/2018