From: Arneh Babakhani (ababakha_at_mccammon.ucsd.edu)
Date: Sun Dec 02 2007 - 20:57:41 CST

No, that doesn't work either. All of these suggestion work fine with the
eps format but not the jpg. So either the jpg format isn't supported and
one must use an external program, or I just have the syntax wrong:

>Main< (diversity0776) 67 % render snapshot MySnapshot {convert %s eps:%s.ps}
>Main< (diversity0776) 69 % ls MySnapshot*
./:
MySnapshot MySnapshot.ps
>Main< (diversity0776) 70 % render snapshot MySnapshot {convert %s
jpg:%s.jpg}
>Main< (diversity0776) 71 % ls *.jpg
./:
>Main< (diversity0776) 72 % render snapshot MySnapshot {convert %s
JPEG:%s.jpg}
>Main< (diversity0776) 73 % ls *.jpg
./:
>Main< (diversity0776) 74 % render snapshot MySnapshot {convert %s
JPG:%s.jpg}
>Main< (diversity0776) 75 % ls *.jpg
./:

> On Sun, 2 Dec 2007, Arneh Babakhani wrote:
>
>
>
> AB> Yes, or nconvert will also do the trick (tends to run faster than
> GIMP) .
> AB> . . I was just wondering if there was a way to render to jpg in VMD,
> b/c
> AB> I'd like to script it (taking many snapshots). I could always write
> two
>
> i think your problem is that you didn't put the script into proper
> quotation.
>
> render snapshot output {convert %s jpg:%s.jpg ; rm %}
>
> should work fine.
>
> cheers,
> axel.
>
> AB> scripts: one to generate the snapshots in vmd, then another to convert
> AB> them to a different format (using nconvert, or gimp).
> AB>
> AB> Thanks!
> AB>
> AB> Arneh
> AB>
> AB>
> AB> > One more thing: if you're using Linux, there are many programs you
> can
> AB> > use for converting purposes. I like GIMP...
> AB> >
> AB> >
> AB> > On Dec 3, 2007 12:58 AM, L. Michel Espinoza-Fonseca
> AB> > <mef_at_ddt.biochem.umn.edu> wrote:
> AB> >> Hi,
> AB> >>
> AB> >> What I usually do is just convert the image (let's say eps or bmp
> one)
> AB> >> to a whatever format I need to (i.e., tiff or jpg) by using an
> AB> >> external image editor, such as photoshop. That usually works pretty
> AB> >> well.
> AB> >>
> AB> >> Cheers,
> AB> >> Michel
> AB> >>
> AB> >>
> AB> >> On Dec 2, 2007 10:02 PM, Arneh Babakhani
> <ababakha_at_mccammon.ucsd.edu>
> AB> >> wrote:
> AB> >> > Hi,
> AB> >> >
> AB> >> > I'm trying to render a snapshot from the tcl console, and would
> like
> AB> >> to
> AB> >> > have it in a jpg or gif format (don't need high quality).
> AB> >> >
> AB> >> > I'm trying to follow the example on p. 87 of the VMD manual,
> where it
> AB> >> > suggests:
> AB> >> >
> AB> >> > render snapshot MySnaphot convert %s eps:%s.ps
> AB> >> >
> AB> >> > to get a snapshot in ps format. This works fine.
> AB> >> >
> AB> >> > But how does one render to achieve a gif or jpg format? I tried
> to
> AB> >> execute:
> AB> >> >
> AB> >> > render snapshot MySnapshot convert %s jpg:%s.jpg
> AB> >> >
> AB> >> > but the convert part doesn't work, nor for convert %s.gif:%s.gif
> . I
> AB> >> > probably just have bad syntax, am I missing something here?
> AB> >> >
> AB> >> > Thanks,
> AB> >> >
> AB> >> > Arneh
> AB> >> >
> AB> >> >
> AB> >> >
> AB> >>
> AB> >
> AB>
> AB>
> AB>
>
> --
> =======================================================================
> Axel Kohlmeyer akohlmey_at_cmm.chem.upenn.edu http://www.cmm.upenn.edu
> Center for Molecular Modeling -- University of Pennsylvania
> Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
> tel: 1-215-898-1582, fax: 1-215-573-6233, office-tel: 1-215-898-5425
> =======================================================================
> If you make something idiot-proof, the universe creates a better idiot.
>

-- 
Arneh Babakhani
McCammon Lab
Department of Chemistry & Biochemistry
University of California at San Diego
9500 Gilmand Dr MC 0365
La Jolla, CA 92093-0365
(619)895-6540
(858)534-4974 (FAX)
ababakha_at_mccammon.ucsd.edu
http://mccammon.ucsd.edu/~ababakha/