MediaShrinkReflowPluginOptions

data class MediaShrinkReflowPluginOptions(val activationThreshold: Double = 0.15, val maxShrinkFactor: Double = 0.7, val penaltyAtMaxShrinkage: Int = 10)

Constructors

Link copied to clipboard
fun MediaShrinkReflowPluginOptions(activationThreshold: Double = 0.15, maxShrinkFactor: Double = 0.7, penaltyAtMaxShrinkage: Int = 10)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

A value between 0 and 1. Images with height larger than this factor * pageHeight will shrink.

Link copied to clipboard

A value between 0 and 1. This number dictates how much the image can shrink if its height exceeds the activation threshold. A value of 1 will shrink the image down to the threshold height.

Link copied to clipboard

The penalty for shrinking the image down to the maxShrinkFactor. The real value is interpolated between this value and 0.