This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

ImageResize

ImageResize
gives a resized version of image that is w pixels wide.
ImageResize
gives a resized version of image with a maximum pixel width or height given by s.
ImageResize
gives a resized version of image that has exactly the specified pixel width and height.
ImageResize
gives a resized version of image that has the specified maximum width and height.
  • Specifications for both width and height can be any of the following:
Automaticvisible size
Tiny,Small,Medium,Largepredefined absolute sizes
dd pixels
Scaled[s]a multiple s of the original size
  • By default ImageResize automatically chooses the most suitable resampling algorithm. An explicit algorithm can be specified by setting the Resampling option.
  • ImageResize takes an AspectRatio option which controls the dimensions if either the width or the height of the resulting image is unspecified. Possible settings for AspectRatio are:
Automatickeeps the aspect ratio of the input image
rthe ratio of height to width of the resulting image
{side1,side2}orientation-independent aspect ratio
Resize an image to be 100 pixels wide:
Resize an image to be 100 pixels wide:
In[1]:=
Click for copyable input
Out[1]=
Resize by a factor of 1/2:
Downsampling with no interpolation will give poor results for thin objects:
Resizing an image into a square image:
Specify an orientation-independent aspect ratio:
The AspectRatio setting is ignored if explicit image dimensions are specified:
New in 7 | Last modified in 8