![Forrest logo](/images/logo.png)
convert:tldr:c888e
convert: Scale an image keeping the original aspect ratio to a maximum dimension of 640x480.
$ convert ${image-png} -resize 640x480 ${image2-png}
try on your machine
This command is using the "convert" command-line tool to resize an image in the PNG format.
- "${image-png}" is a placeholder for the input image file name with the PNG extension.
- "-resize 640x480" is an argument to specify the desired dimensions of the output image. In this case, it will resize the image to have a width of 640 pixels and a height of 480 pixels.
- "${image2-png}" is a placeholder for the output image file name with the PNG extension.
When this command is executed, it will read the input image file, resize it to the specified dimensions, and save the resized image with the given output file name.
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.