[magick-users] Help required regarding resize

Anthony Thyssen anthony at griffith.edu.au
Sun Oct 14 04:11:36 PDT 2007


sagar sagar on  wrote...
| Hi,=0A=0AI am using imagemagick for resizing images & change the image type=
|  to jpeg. My requirements are :=0A1. If image is big I want to make it smal=
| l to fit one page in crystal reports (say 7 inch X 7 inch).=0A2. If the ima=
| ge is small I do not want to make it big as it loses the quality but it sho=
| uld be placed in the middle of 7inch X 7 inch block specified for the image=
|  on crystal report page.=0A3. The image quality & aspect ratio are prime re=
| quirements.=0A4. I have observed that image size on crystal report page dep=
| ends on the pixels of image. i.e evenif image looks small in any image view=
| ing tool if it has more pixels it is rendered as bigger image on crystal so=
|  is there way to restrict size on crystal reports page ?=0APlease let me kn=
| ow.=0A=0AThanks in advance for your help.=0ASagar=0A=0A=0A      Did you kno=
| w? You can CHAT without downloading messenger. Go to http://in.messenger.ya=
| hoo.com/webmessengerpromo.php/ 

Okay the best way is to use resize to set the size you want in terms
of pixels (but only reducing image size), then set a resolution
to fix that many pixels in a 7 inch box.

The best way to dermine the number of pixels needed is to ask..
What output resultion is the report for?

A display screen of  75dpi or 100dpi or even 120dpi?
a printer of 300 dpi or 600dpi?
or photo quality printer for a book at 1200 dpi to 2400 dpi?

Example, good quality for 300 dpi printer.

That is 300 dots per inch, so a 7 inch image is 2100 pixels.
And set the resolution to that scale..
Also I used a final image type of JPEG for the best compression though
with some slight quality loss.  JPEG should be the final format
only if used without decoding by crystal report.

  convert image.png -resize "2100x2100>" -density 300 -quality 80 image.jpg

The ">" in the resize means only shrink images, never enlarge.


  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 -----------------------------------------------------------------------------
   Branches from the nearby foliage, or geological specimens, may fracture
   my skeletal structure; however, inaccurate descriptions of my physical
   appearance, heritage or personality, cannot damage my psyche.
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


More information about the Magick-users mailing list