From 64614a165723dff3c1ba3dcfd9fb6d277e71f47d Mon Sep 17 00:00:00 2001
From: sjplimp Building LAMMPS can be non-trivial. You may need to edit a makefile,
there are compiler options to consider, additional libraries can be
-used (MPI, FFT, JPEG), LAMMPS packages may be included or excluded,
-some of these packages use auxiliary libraries which need to be
-pre-built, etc.
+used (MPI, FFT, JPEG, PNG), LAMMPS packages may be included or
+excluded, some of these packages use auxiliary libraries which need to
+be pre-built, etc.
Please read this section carefully. If you are not comfortable with
makefiles, or building codes on a Unix platform, or running an MPI job
@@ -188,6 +188,7 @@ within the LAMMPS code. The options that are currently recogized are:
If you use -DLAMMPS_JPEG, the dump image command will be -able to write out JPEG image files. If not, it will only be able to -write out text-based PPM image files. For JPEG files, you must also -link LAMMPS with a JPEG library, as described below. +able to write out JPEG image files. For JPEG files, you must also link +LAMMPS with a JPEG library, as described below. If you use +-DLAMMPS_PNG, the dump image command will be able to write +out PNG image files. For PNG files, you must also link LAMMPS with a +PNG library, as described below. If neither of those two defines are +used, LAMMPS will only be able to write out text-based PPM image +files.
Using -DLAMMPS_MEMALIGN=
Step 7
-The 3 JPG variables allow you to specify a JPEG library which LAMMPS -uses when writing out JPEG files via the dump image -command. These can be left blank if you do not use the -DLAMMPS_JPEG -switch discussed above in Step 4, since in that case JPEG output will -be disabled. +
The 3 JPG variables allow you to specify a JPEG and/or PNG library +which LAMMPS uses when writing out JPEG or PNG files via the dump +image command. These can be left blank if you do not +use the -DLAMMPS_JPEG or -DLAMMPS_PNG switches discussed above in Step +4, since in that case JPEG/PNG output will be disabled.
-A standard JPEG library usually goes by the name libjpeg.a and has an -associated header file jpeglib.h. Whichever JPEG library you have on -your platform, you'll need to set the appropriate JPG_INC, JPG_PATH, -and JPG_LIB variables, so that the compiler and linker can find it. +
A standard JPEG library usually goes by the name libjpeg.a or +libjpeg.so and has an associated header file jpeglib.h. Whichever +JPEG library you have on your platform, you'll need to set the +appropriate JPG_INC, JPG_PATH, and JPG_LIB variables, so that the +compiler and linker can find it. +
+A standard PNG library usually goes by the name libpng.a or libpng.so +and has an associated header file png.h. Whichever PNG library you +have on your platform, you'll need to set the appropriate JPG_INC, +JPG_PATH, and JPG_LIB variables, so that the compiler and linker can +find it.
As before, if these header and library files are in the usual place on
your machine, you may not need to set these variables.
@@ -1252,8 +1264,8 @@ defining index and other kinds of variables and NOTE: Currently, the command-line parser looks for arguments that
+start with "-" to indicate new switches. Thus you cannot specify
multiple variable values if any of they start with a "-", e.g. a
negative numeric value. It is OK if the first value1 starts with a
"-", since it is automatically skipped.
diff --git a/doc/Section_start.txt b/doc/Section_start.txt
index 02113a1c3e..f905bd2e2a 100644
--- a/doc/Section_start.txt
+++ b/doc/Section_start.txt
@@ -80,9 +80,9 @@ This section has the following sub-sections:
Building LAMMPS can be non-trivial. You may need to edit a makefile,
there are compiler options to consider, additional libraries can be
-used (MPI, FFT, JPEG), LAMMPS packages may be included or excluded,
-some of these packages use auxiliary libraries which need to be
-pre-built, etc.
+used (MPI, FFT, JPEG, PNG), LAMMPS packages may be included or
+excluded, some of these packages use auxiliary libraries which need to
+be pre-built, etc.
Please read this section carefully. If you are not comfortable with
makefiles, or building codes on a Unix platform, or running an MPI job
@@ -182,6 +182,7 @@ within the LAMMPS code. The options that are currently recogized are:
-DLAMMPS_GZIP
-DLAMMPS_JPEG
+-DLAMMPS_PNG
-DLAMMPS_MEMALIGN
-DLAMMPS_XDR
-DLAMMPS_SMALLBIG
@@ -197,9 +198,13 @@ compile with -DLAMMPS_GZIP. It requires that your Unix support the
"popen" command.
If you use -DLAMMPS_JPEG, the "dump image"_dump.html command will be
-able to write out JPEG image files. If not, it will only be able to
-write out text-based PPM image files. For JPEG files, you must also
-link LAMMPS with a JPEG library, as described below.
+able to write out JPEG image files. For JPEG files, you must also link
+LAMMPS with a JPEG library, as described below. If you use
+-DLAMMPS_PNG, the "dump image"_dump.html command will be able to write
+out PNG image files. For PNG files, you must also link LAMMPS with a
+PNG library, as described below. If neither of those two defines are
+used, LAMMPS will only be able to write out text-based PPM image
+files.
Using -DLAMMPS_MEMALIGN= Description:
Dump a high-quality ray-traced image of the atom configuration every N
-timesteps as either a JPG or PPM file. The options for this command
-as well as the dump_modify command control what is
-included in the image and how it appears. A series of such images can
-easily be converted into an animated movie of your simulation; see
-further details below. Other dump styles store snapshots of numerical
-data asociated with atoms in various formats, as discussed on the
-dump doc page.
+timesteps as either a JPG or PNG or PPM file. The options for this
+command as well as the dump_modify command control
+what is included in the image and how it appears. A series of such
+images can easily be converted into an animated movie of your
+simulation; see further details below. Other dump styles store
+snapshots of numerical data asociated with atoms in various formats,
+as discussed on the dump doc page.
Here are two sample images, rendered as 1024x1024 JPG files. Click to
see the full-size images:
@@ -103,7 +103,17 @@ see the full-size images:
Only atoms in the specified group are rendered in the image. The
dump_modify region and thresh commands can also
-alter what atoms are included in the image.
+alter what atoms are included in the image. The filename suffix determines whether a JPEG, PNG, or PPM file is
+created. If the suffix is ".jpg" or ".jpeg", then a JPEG format file
+is created, if the suffix is ".png", then a PNG format is created,
+else a PPM (aka NETPBM) format file is created. The JPG and PNG files
+are binary; PPM is a text file. JPG images have lossy compression;
+PNG and PPM formats have lossless compression. To write out JPEG and
+PNG format files, you must build LAMMPS with support for the
+corresponding JPEG or PNG library. See this
+section of the manual for instructions
+on how to do this.
The filename suffix determines whether a JPG or PPM file is created.
If the suffix is ".jpg" or ".jpeg", then a JPG file is created, else a
diff --git a/doc/dump_image.txt b/doc/dump_image.txt
index 4bb4095f05..6fa315a0d2 100644
--- a/doc/dump_image.txt
+++ b/doc/dump_image.txt
@@ -69,13 +69,13 @@ dump myDump all image 100 dump.*.jpg type type :pre
[Description:]
Dump a high-quality ray-traced image of the atom configuration every N
-timesteps as either a JPG or PPM file. The options for this command
-as well as the "dump_modify"_dump_modify.html command control what is
-included in the image and how it appears. A series of such images can
-easily be converted into an animated movie of your simulation; see
-further details below. Other dump styles store snapshots of numerical
-data asociated with atoms in various formats, as discussed on the
-"dump"_dump.html doc page.
+timesteps as either a JPG or PNG or PPM file. The options for this
+command as well as the "dump_modify"_dump_modify.html command control
+what is included in the image and how it appears. A series of such
+images can easily be converted into an animated movie of your
+simulation; see further details below. Other dump styles store
+snapshots of numerical data asociated with atoms in various formats,
+as discussed on the "dump"_dump.html doc page.
Here are two sample images, rendered as 1024x1024 JPG files. Click to
see the full-size images:
@@ -89,7 +89,18 @@ see the full-size images:
Only atoms in the specified group are rendered in the image. The
"dump_modify region and thresh"_dump_modify.html commands can also
-alter what atoms are included in the image.
+alter what atoms are included in the image.\
+
+The filename suffix determines whether a JPEG, PNG, or PPM file is
+created. If the suffix is ".jpg" or ".jpeg", then a JPEG format file
+is created, if the suffix is ".png", then a PNG format is created,
+else a PPM (aka NETPBM) format file is created. The JPG and PNG files
+are binary; PPM is a text file. JPG images have lossy compression;
+PNG and PPM formats have lossless compression. To write out JPEG and
+PNG format files, you must build LAMMPS with support for the
+corresponding JPEG or PNG library. See "this
+section"_Section_start.html#start_2_4 of the manual for instructions
+on how to do this.
The filename suffix determines whether a JPG or PPM file is created.
If the suffix is ".jpg" or ".jpeg", then a JPG file is created, else a