Description
This property specifies the quality of Jpeg and Photo-realistic images compression.
Type
long (read/write)
Default value
75
Remarks
The possible values for the JpegImageQuality property are
integer numbers in range 0-100.
The value of 0 applies lossless image
compression algorithm to photo-realistic images in presentation. The values
from 1 to 100 apply lossy image compression where 100 provides
higher quality and 1 provides the smallest size and the lowest quality.
Photorealistic images can be represented in Flash format using Lossless (PNG-like)
or Lossy (JPEG-like) image compression. Lossless image compression
preserves the original quality of images but usually increases Flash file size.
Lossy image compression usually provides higher compression rates especially
for photo-realistic images but decreases their quality. Non-photo realistic
images such as graphs, charts, or sketches being compressed with lossy algorithm
lose their quality noteceably. That's why lossless algorithms are the most
suitable for them.
There is so-called smart image compression technique available
since FlashSpring Server 2.4 and FlashSpring Pro 3.0. FlashSpring analyses
the content of raster images to determine whether they are photo-realistic
or non-photo realistic and applies lossy or lossless image compression. This
technique provides the best image quality as well as the reasonable file size.
Note: The smart image compression is automatically used when the ImageQuality property
is set to 0 and the JpegImageQuality property is set to non-zero.
Example
The following example converts the presentation to solid Flash file using smart
image compression.
Sub Sample()
Dim fs As New FlashSpringAPI.FlashSpring
fs.OpenPresentation "d:\temp\test.ppt"
fs.Settings.Media.JpegImageQuality = 85
fs.Settings.Media.ImageQuality = 0
fs.GenerateFlash "c:\presentations", "myMovie.swf", OM_SOLID, "Standard"
fs.ClosePresentation
fs.ClosePowerPoint
End Sub
See Also
ImageQuality Property
GifImageQuality Property
MediaSettings
Object