Forrest logo
back to the sips tool

sips:tldr:164e7

sips: Resample image so height and width aren't greater than specified size (notice the capital Z).
$ sips --resampleHeightWidthMax ${1920} ${300} ${image_file-ext}
try on your machine

The command you provided is using the "sips" command line tool to resize an image file to a specified maximum width and height.

Here is a breakdown of the command:

  • "sips" is a command line tool available on macOS and can be used for manipulating images.
  • "--resampleHeightWidthMax" is an option or flag used with the "sips" command to specify that the maximum width and height should be used for the resizing.
  • "${1920}" and "${300}" are placeholders for the values of the maximum width and height respectively. In this case, 1920 represents the maximum width, and 300 represents the maximum height.
  • "${image_file-ext}" is another placeholder for the name of the image file being resized. The "-ext" part suggests that this placeholder should be replaced with the extension of the image file.

In summary, when you run this command, it resizes the specified image file with a maximum width of 1920 and a maximum height of 300 using the sips command line tool.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the sips tool