G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
Banner Institutions GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 4.0.8 (2026/11/19)

Reference
Table of Contents  ▸  List of Commands  ▸  Image Drawing  ▸  perspective◀  line_aa    |    spline  ▶

perspective

Arguments:

  • [image],x0[%],y0[%],x1[%],y1[%],x2[%],y2[%],x3[%],y3[%],_opacity,_interpolation,_boundary_conditions

Description:

Draw specified [image] on selected images, as a 3D quadrilatere in perspective.

interpolation can be { 0:Nearest-neighbor | 1:Linear | 2:Cubic }.
boundary_conditions can be { 0:Dirichlet | 1:Neumann | 2:Periodic | 3:Mirror }.

Default values:

opacity=1, interpolation=1 and boundary_conditions=0.

Example of use:

image.jpg to_rgba 512,512,1,4 perspective[-1] [-2],20%,20%,80%,30%,70%,80%,40%,70%

Command: image.jpg to_rgba 512,512,1,4 perspective[-1] [-2],20%,20%,80%,30%,70%,80%,40%,70%
Command: image.jpg to_rgba 512,512,1,4 perspective[-1] [-2],20%,20%,80%,30%,70%,80%,40%,70%
G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

G'MIC is an open-source software distributed under the CeCILL free software licenses (LGPL-like and/or
GPL-compatible). Copyrights (C) Since July 2008, David Tschumperlé - GREYC UMR CNRS 6072, Image Team.