| Table of Contents ▸ List of Commands ▸ Values Manipulation ▸ discard | ◀ decompress_rle | eigen2tensor ▶ | 
discard | Built-in command | 
Arguments:
- _value1,_value2,... or
 - { x | y | z | c}...{ x | y | z | c},_value1,_value2,... or
 - (no arg)
 
Description:
Discard specified values in selected images or discard neighboring duplicate values,optionally only for the values along the first of a specified axis.
If no arguments are specified, neighboring duplicate values are discarded.
If all pixels of a selected image are discarded, an empty image is returned.
Examples of use:
• Example #1
 (1;2;3;4;3;2;1) +discard 2
• Example #2
 (1,2,2,3,3,3,4,4,4,4) +discard x


  
                Home
  
                Download
  
                News
  
                    Mastodon
  
                    Bluesky
  
                    X
  
                    Summary - 17 Years
  
                    Summary - 16 Years
  
                    Summary - 15 Years
  
                    Summary - 13 Years
  
                    Summary - 11 Years
  
                    Summary - 10 Years
  
                Resources
  
                    Technical Reference
  
                    Scripting Tutorial
  
                    Video Tutorials
  
                    Wiki Pages
  
                    Image Gallery
  
                    Color Presets
  
                    Using libgmic
  
                    G'MIC Online
  
                Community
  
                    Discussion Forum (Pixls.us)
  
                    GimpChat
  
                    IRC
  
                Report Issue


