On Wed, Mar 29, 2006 at 04:47:47PM -0500, Raji Edayathumangalam wrote:
> 
> Here's a suggestion. Many moons ago, PyMOL would write out pictures with 
> a default resolution of 72 dpi.
> 
> To circumvent this, I used to reset the size of the output image in 
> PyMOL to get the final resolution you want in the foll. manner.
> 
> Say you want a fig. with final resolution of ~ 300 dpi at a final size 
> of 4-in by 3-in.
> 

I always notice people do this, but it doesn't actually get around the
issue of print resolution versus image resolution (and no, the two
aren't the same).  Just becuase I have a 1200x900 image scaled in a
4x3" box doesn't mean my printer will use 300DPI when it prints - I've
seen cases where printers/programs actually take a 72DPI image and
upsample it to 300, then rescale it to the desired size on the page,
which doesn't look too good in print.  Anyway, I've started using the
GIMP to reset my print size without affecting the image in any way, so
its easy to just drop the image into whatever program without having
to do too much math (desired image size * 300 / 72 = head 'asplode).
I've attached a GIMP non-interactive script, if anyone finds it as
useful as I do.  After running images through povray, I run:

gimp -i -b '(batch-printsize-change "*.png" 300.0 300.0)' '(gimp-quit 0)'

I'm sure photoshop can do the same, but I've never really used it...

HTH,
Tim

-- 
---------------------------------------------------------

        Tim Fenn
        [EMAIL PROTECTED]
        Stanford University, School of Medicine
        James H. Clark Center
        318 Campus Drive, Room E300
        Stanford, CA  94305-5432
        Phone:  (650) 736-1714
        FAX:  (650) 736-1961

---------------------------------------------------------

(define (batch-printsize-change pattern
                              xresolution
                              yresolution)
  (let* ((filelist (cadr (file-glob pattern 1))))
    (while filelist
           (let* ((filename (car filelist))
                  (image (car (gimp-file-load RUN-NONINTERACTIVE
                                              filename filename)))
                  (drawable (car (gimp-image-get-active-layer image))))
             (gimp-image-set-resolution
                                   image xresolution yresolution)
             (set! drawable (car (gimp-image-get-active-layer image)))
             (gimp-file-save RUN-NONINTERACTIVE
                             image drawable filename filename)
             (gimp-image-delete image))
           (set! filelist (cdr filelist)))))

Reply via email to