MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Resizing Graphics

  • To: mathgroup at
  • Subject: [mg36357] Re: Resizing Graphics
  • From: Jens-Peer Kuska <kuska at>
  • Date: Tue, 3 Sep 2002 01:40:58 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <akn0lk$llm$>
  • Reply-to: kuska at
  • Sender: owner-wri-mathgroup at


take the matrix of gray values or the matrix of the color channels,
apply ListInterpolation[] and generate a resampled table with
the interpolated function.


Aaron wrote:
> I was wondering if there is a method for resizing Raster graphics
> (resizing the actual matrix of pixels, not just the display size).  I
> am processing a large number of JPEG images, and we sometimes need to
> reduce the image size to allow data processing algorithms to function
> without running out of memory.  In the past we simply used a program
> such as Photoshop to resize them before importing them into
> Mathematica.  Due to the number of images we are processing now this
> is very inconvenient and it would be very useful if there was a method
> for accomplishing it in Mathematica, but I can't find one.  I also
> thought about doing something simple like sampling every few pixels or
> averaging, but I thought there might be a method with more efficacy
> than this. I also tried exporting the graphics with the Export command
> as new JPEGs and manipulating the ImageResolution and ImageSize
> options but this seemed to have no effect.  Any help would be much
> appreciated.
> Thanks,
> Aaron Urbas

  • Prev by Date: RE: Generating Two Unit Orthogonal Vectors to a 3D Vector
  • Next by Date: Re: Generating Two Unit Orthogonal Vectors to a 3D Vector
  • Previous by thread: Re: I want to get the coefficient of the Legendre-Gauss Quadrature
  • Next by thread: Re: Resizing Graphics