Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Image Processing & Analysis > Basic Image Manipulation >

ImageResize

ImageResize[image, w]
gives a resized version of image that is w pixels wide.
ImageResize[image, {s}]
gives a resized version of image with a maximum pixel width or height given by s.
ImageResize[image, {w, h}]
gives a resized version of image that has exactly the specified pixel width and height.
ImageResize[image, {{wmax}, {hmax}}]
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
Resize an image to be 100 pixels wide:
Resize by a factor of 1/2:
Resize an image to be 100 pixels wide:
In[1]:=
Click for copyable input
Out[1]=
 
Resize by a factor of 1/2:
In[1]:=
Click for copyable input
Out[1]=
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team