dump image command error

hi users,
I am trying to use the ‘amap’ option of the dump image command to produce JPG images for velocity ‘vx’ as parameter to atom color.
Here are the dump command used lines in my input file.

dump myDump all image 1000 dump.*.jpg vx vx

dump_modify myDump amap 0 75 cf 0.0 3 min green 0.5 yellow max blue

the error shows is:

ERROR: Cannot dump JPG file

Please anyone can suggest something to fix this error.

Have you actually compiled in jpeg support?

Axel

yes, compiled after successful patching upto 12Jun2011 (patch.12Jun2011).
the error before patching is: ERROR: Invalid dump style
error after patching is:ERROR: Cannot dump JPG file

yes, compiled after successful patching upto 12Jun2011 (patch.12Jun2011).

why not upgrade to the current version?

the error before patching is: ERROR: Invalid dump style
error after patching is:ERROR: Cannot dump JPG file

patching alone doesn't mean that you compiled in jpeg support.
you have add a define and link to the library, too.

you can test if the dump image command works in its own
right by trying to write ppm format image files.

axel.

Dear Axel,
Yes, after linking the jpg library its working. Now I can create the jpg images so that I can make movie of the simulation.
Thanks!
Here is a suggestion: A feature to print a time stamp (or respective text or variable) on this jpg image would be really helpful to have completeness of a simulation video. I think, this kind of feature can be made by providing an additional keyword to ‘dump image’ command.

It's a good suggestion, but non-trivial to implement. You'd have to
be able to "render" text in a font, pixel by pixel.

I think there are probably post-processing tools that can overlay
text on top of a JPG (or other format) image.

Steve

It's a good suggestion, but non-trivial to implement. You'd have to
be able to "render" text in a font, pixel by pixel.

I think there are probably post-processing tools that can overlay
text on top of a JPG (or other format) image.

yes. pbmtext from the netpbm package can do that.

but even simpler would be to use the movie maker plugin
in VMD that does that all transparently.

http://www.ks.uiuc.edu/Research/vmd/plugins/vmdmovie/

cheers,
    axel.