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_aspect_crop_2d◀  rep_photomosaic    |    rep_nebulous  ▶

rep_aspect_crop_2d

Arguments:

  • width_ratio>0,height_ratio>0,-1<=_shift_factor[%]<=1    or
  • width_ratio>0,height_ratio>0,-1<=_shift_factor_a[%]<=1,-1<=_shift_factor_b[%]<=1

Description:

Crop images based on specified aspect ratio.

 
Code for finding new dimension was provided by Sumruv in discord/generative. The code that was provided applies only in the case of ratio not equal to 1.

Default values:

shift_factor=0

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.