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.4 (2026/08/19)

Reference
Table of Contents  ▸  List of Commands  ▸  Reptorian's Commands  ▸  rep_glass_vignette◀  rep_fibonacci_fill    |    rep_cube_map_to_equirectangular_panorama  ▶

rep_glass_vignette

Arguments:

  • refraction,_refraction_power,_len_size=1,_chromatic_aberration,-100%<=_preliminary_shift_x<=100%,-100%<=_preliminary_shift_y<=100%,_image_additional_zoom>0,-360<=_image_angle<=360,_distortion_scale_x,_distortion_scale_y,_distortion_scale_xy>0,-360<=_distortion_angle<=360,_distortion_offset_x,_distortion_offset_y,_subpixel>0,0<=_colorspace<=1,_boundary={ 0=none | 1=neumann | 2=periodic | 3=mirror },_interpolation={ 0=nearest | 1=average | 2=linear | 3=grid | 4=bicubic | 5=lanczos }

Description:

Distorts images as if it is based from the view of a bulged car mirror or camera len. This G'MIC filter is a heavily extended version of TR's Glass Vignette plugin made for Paint.NET by TechnoRobbo. It can also be used for generating abstract art as well.

(equivalent to shortcut command rep_gv).


 
refraction defines the strength of distortion. The farther the values from 0, the greater the distortion is. It is recommended to use percentage alongside a number.
_refraction_power defines the distortion factor within the refraction. The farther the values from 0, the greater the distortion is. It is recommended to use percentage alongside a number.
_len_size is the size of distortion accordingly to the terminal ends of the lens distortion.
_chromatic_aberration is the degree of aberration within channels. The farther the values from 0, the greater the distortion per channels would be. It is recommended to use percentage alongside a number.
_preliminary_shift_x is the preshift of images before the distortion effect. This is used in the original plugin. It is recommended to use percentage alongside a number.
_preliminary_shift_y is the preshift of images before the distortion effect. This is used in the original plugin. It is recommended to use percentage alongside a number.
_image_additional_zoom defines the scaling based on scaling of coordinates of image within the distortion effect. 0 starts with scaling of 1x, and 1 means scaling of 2x.
_image_angle defines the angle of image within the distortion.
_distortion_scale_x is the scaling of distortion within the x-axis. When this is set to 0, the ratio of image is used instead. 0 starts with scaling of 1x, and 1 means scaling of 2x.
_distortion_scale_y is the scaling of distortion within the y-axis. When this is set to 0, the ratio of image is used instead. 0 starts with scaling of 1x, and 1 means scaling of 2x.
_distortion_scale_xy is the scaling of distortion within the x and y axis at the same time.
_distortion_angle is the angle of distortion effect. 0 starts with scaling of 1x, and 1 means scaling of 2x.
_distortion_offset_x is the displacement of distortion within the x-axis. It is recommended to use percentage alongside a number.
_distortion_offset_y is the displacement of distortion within the y-axis. It is recommended to use percentage alongside a number.
_subpixel is the level of subpixel sampling to be used.
_colorspace defines the color space of the image to process distortion on.
_boundary defines how the out-of-bound areas is to be behave.
_interpolation defines the interpolation within distortion.

Default values:

_refraction_power=0,_lensize=1,_chromatic_aberration=0,_preliminary_shift_x=0,_preliminary_shift_y=0,_image_zoom=0,_image_angle=0,_distortion_scale_x=1,_distortion_scale_y=1,_distortion_scale_xy=1,_distortion_angle=0,_distortion_offset_x=0,_distortion_offset_y=0,_subpixel=1,_colorspace=0,_boundary=3,_interpolation=5,

 
Author: Reptorian.
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.