*
* Copy the plane with index @plane from @src to @dest.
*
+ * Note: Since: 1.18, @dest dimensions are allowed to be
+ * smaller than @src dimensions.
+ *
* Returns: TRUE if the contents could be copied.
*/
gboolean
finfo = dinfo->finfo;
- g_return_val_if_fail (dinfo->width == sinfo->width
- && dinfo->height == sinfo->height, FALSE);
+ g_return_val_if_fail (dinfo->width <= sinfo->width
+ && dinfo->height <= sinfo->height, FALSE);
g_return_val_if_fail (finfo->n_planes > plane, FALSE);
sp = src->data[plane];