How to set up Thumbnail display in WebDocs - iSeries Edition - Support

How to set up Thumbnail display in WebDocs - iSeries Edition

From Support

Jump to: navigation, search

1) Install RJSIMAGE library version 1.44 or above

2) DOCTHUMBS data area in RJSIMAGE will need to be set to *YES

CHGDTAARA DTAARA(RJSIMAGE/DOCTHUMBS) VALUE('*YES')

3) DOCICONSIZ data area in RJSIMAGE holds the default icon size.

Default value in data area: height="32" width="32"

This sets the default thumbnail size to 32x32 pixels.

Example: The following command example sets the icon size to 64x64 pixels to display a bigger thumbnail: CHGDTAARA DTAARA(RJSIMAGE/DOCICONSIZ) VALUE('height="64" width="64"')

4.) The following directives should be added to your web server config in the following order to insure that GIF/JPG/BMP docs can be rendered correctly, otherwise doc image thumbnails will not show up:

Classic HTTP Server Setup (V4R3 - V5R2) PASS /RJSIMAGE/RJSIMAGEDOC/* /RJSIMAGEDOC/* PASS /RJSIMAGE/* /RJSIMAGE/*

Apache HTTP Server Setup (V5R1 and above.) This example assumes a web server instance called APACHEDFT

Note: If your web server instance was created as RJSIMAGE or something else, substitute RJSIMAGE or the appropriate instance name anywhere APACHEDFT is used in our example.

Use the following command to navigate to the APACHEDFT configuration folder: WRKLNK OBJ('/www/apachedft/conf/*')

Open the Apache configuration file: httpfd.conf via option 2.) Edit.

Insert the following line as the first line in the config file so the web server knows the physical /rjsimagedoc IFS folder as /rjsimage/rjsimagedoc. This will allow thumbnail images of documents to be displayed.

Alias /rjsimage/rjsimagedoc/ /rjsimagedoc/

Insert the following IFS directory permission data block before the <Directory /www/rjsimage/htdocs> code block which should already be there from your initial Apache setup steps.

<Directory /rjsimagedoc>

 AllowOverride None          
 order allow,deny            
 allow from all              

</Directory>

End the Apache web server instance and restart it via the following commands for the new web server directives to take effect: ENDTCPSVR SERVER(*HTTP) HTTPSVR(APACHEDFT)

-Wait 20-30 seconds for all related jobs to end

STRTCPSVR SERVER(*HTTP) HTTPSVR(APACHEDFT)

    • Warning: By directly exposing an IFS folder to users, a minor security risk is being made.
Personal tools