Create an XML request file to upgrade existing images
and create thumbnails.
You must ensure that your application is deployed and running with
the proper file channel set up and available before creating an XML
request file. If the application is not deployed, the file channel will
not process the XML request file.
To upgrade existing images and create thumbnails using an XML
request file:
-
Create an XML file with the following code:
<BatchProcess>
<process>BatchEntityImageUpdater</process>
<class>BatchEntityImageUpdateCommand</class>
<event>updateImages</event>
<arguments>
<argument>
<name>runCreateThumbnails</name>
<value>true</value>
</argument>
<argument>
<name>runEntityImageResize</name>
<value>true</value>
</argument>
<argument>
<name>maxErrorCount</name>
<value>200</value>
</argument>
</arguments>
</BatchProcess>
- To prevent the process from creating thumbnails, set the
runCreateThumnails
flag to
false.
- To prevent the process from resizing existing contact images,
set the
runEntityImageResize
flag to
false.
- To stop the upgrade process when large number of failures
occur, set a maximum error count. Errors can occur if the image
being resized is not compressible or is corrupted. To define the
maximum number of errors, change the
maxErrorCount
value to the maximum number of
errors alotted before stopping the process. You can delete or
comment out the maxErrorCount
argument if you do
not want to stop processing when errors occur. To view error logs,
navigate to the Process screen in NexJ Admin Console
and search for Image Resizing Batch Command
in the name field.
-
Save the file to your hard drive.
-
Copy the file into your
NexJ_Install_Folder\FileChannels\Broker\data\in
folder, which you created in Setting up a file channel for upgrading images.
The file channel processes the XML file and begins upgrading
existing images and creating their respective thumbnails. During the
process, the XML request file is consumed. Once the process is complete,
it is moved to the \processed folder.