BE_JPEGRecompress

BE_JPEGRecompress(jpeg;{compressionLevel;scale})



Re-compresses the jpeg image file found at the container field jpeg, using a scaling factor and compression level.

Parameters:

- jpeg : a JPEG file stored in a container

- compressionLevel :  a value between 1 and 100 (inclusive). The default value, for no compelling reason, is 75

- scale :  a number for the scale of the resulting image.  The default value is 0.125

Keywords:

JPEG Compress Recompress


Version History:

- 3.1 :

- 3.2 : Changed the height and width to a scaling factor to better match the actual workings of the library used.

- 4.0.2 : Renamed from BE_JPEG_Recompress

Notes:

- Use this function with a Set Field script step to convert one container to another.  It can be used to set the same field as the one referenced in the field parameter.

- Values for the "scale" parameter are :

21.8751.751.6251.51.3751.251.12510.8750.750.6250.50.3750.250.125

Any other values are rounded down to the nearest value, except values below 0.125 where it will use 0.125.

Still need help? Contact Us Contact Us