Method

AppStreamComposeImageTargetset_source_size_range

since: 1.2.0

Declaration [src]

void
asc_image_target_set_source_size_range (
  AscImageTarget* target,
  gint min_width,
  gint min_height,
  gint max_width,
  gint max_height
)

Description [src]

Restrict the source images this rendition is created for. If the source image’s dimensions fall outside of the given range, the rendition is skipped and no file is written for it, while the media operation as a whole still succeeds.

Available since: 1.2.0

Parameters

min_width

Type: gint

Minimum source image width, or 0 for no limit.

min_height

Type: gint

Minimum source image height, or 0 for no limit.

max_width

Type: gint

Maximum source image width, or 0 for no limit.

max_height

Type: gint

Maximum source image height, or 0 for no limit.