Forrest logo
back to the magick tool

magick:tldr:ee858

magick: Resize an image, making a new copy.
$ magick convert -resize ${100x100} ${image-jpg} ${image-jpg}
try on your machine

This command is using the "magick" command-line tool to convert and resize an image file. Here's the breakdown:

  • "magick" is the command used to access the "convert" tool in the "magick" suite.
  • "convert" is a versatile tool in the "magick" suite used to convert, resize, or modify images.
  • "-resize" is an option/flag that specifies the resizing operation.
  • "${100x100}" specifies the target dimensions to which the image should be resized. Here, it is set to 100 pixels wide and 100 pixels high.
  • "${image-jpg}" represents the input image file name (e.g., image.jpg). This should be replaced with the actual filename and path of the image you want to resize.
  • "${image-jpg}" represents the output image file name (e.g., image.jpg). Similarly, replace it with the desired output filename and path.

Overall, this command takes an image file and resizes it to 100x100 pixels using the "magick convert" tool. The resulting image will be saved with the same filename.

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 magick tool