CitrixTools.Net Articles

Current Articles | Categories | Search | Syndication

Allow Users to Manage Image Lossy Compression

A recent new feature allows users to control the lossiness of images through an aggressivecompression slider bar.

This feature is added through Hotfix PSE450R02W2K3037.

"Invoking Image Compression in User Sessions"

Compression affects images or parts of images that are in motion in the display of a user session. A quality-control tool, the aggressivecompression.exe utility, allows end-users to adjust the level of compression applied to their sessions.

To invoke compression in a user session, use the command aggressivecompression, which has the following syntax:

aggressivecompression [quality] [display]

Set quality to an integer between 0 and 100, inclusive, representing the default severity of compression used when displaying the drawing or movement of images. 0 applies the highest level of compression. 100 applies no compression. The default quality level is 13.

Set display to indicate whether or not to display the slider bar in the end-user session. Use gui to display the slider bar. Use quiet to prevent displaying of the slider bar and the end-user from adjusting the compression level. By default, display is gui.

You can use the aggressivecompression command to invoke and discontinue compression seamlessly when a user launches an application in a session. When published in place of a graphics program, the following example invokes the highest level of compression but discontinues compression after users close the graphics program:

echo off
aggressivecompression 0 quiet
graphics_program
aggressivecompression 100 quiet

To make the aggressivecompression.exe utility available to users, use one of the following methods:

Launch aggressivecompression.exe (with or without command line switches) in a script that then runs the associated application for use
Publish aggressivecompression.exe on items own (with or without any needed command line switches)
Publish a batch script that invokes compression with a default compression level optimal for your organization; for example:

echo off
aggressivecompression 25 gui

This particular example initially sets compression to 25, a higher level of compression than the default (13), but enables the end-user to modify the compression level.

Note: Any Citrix policy that alters the default setting for Image acceleration (Not Configured) blocks the functionality of the aggressivecompression.exe utility. Users see the slider, but changing the settings has no effect."

posted on Tuesday, September 16, 2008 2:31 AM by Pierre Marmignon    

Previous Page | Next Page

COMMENTS

Only registered users may post comments.