Helmut Jarausch on  wrote...
| Hi,
| 
| this must be FAQ, still I haven't found the answer.
| 
| I want to display an image (i.e. a jpeg file) and want it scaled
| such that the whole image fits to the current (X-)window.
| 
| What option of 'display' achieves this?
| 

Limit display to 800x600 pixels with...

  display -resize 800x600\> photo.jpg

The '>' means only shrink larger images, never resize smaller image.

For JPG images you can speed up the image read with..

  display -size 800x600 -resize 800x600\> photo.jpg

If you want to know your X windows display size use 'xdpyinfo'

  xdpyinfo | grep dimensions:

---
I have not added much for 'display' to IM examples yet
(Basics page), but I have added a raw note for the above info
to those pages

   http://www.cit.gu.edu.au/~anthony/graphics/imagick6/basics/#display


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
   PC: I point the wand at the dragon and say the word.
   DM: (rolls dice) You just died!    PC: WHAT!?!   DM: Wrong end.
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to