zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@zsh.org>
Subject: PATCH: some extra options in Image Magick completion
Date: Wed, 12 Aug 2020 11:59:15 +0200	[thread overview]
Message-ID: <65821-1597226355.248205@U4of.LGMm.cUNE> (raw)
In-Reply-To: <65821-1597226355.248205.ref@U4of.LGMm.cUNE>

At some point when using Image Magick's convert command I added a couple
of missing options to the completion in my local branch. But the
function is missing many other options and needs rather more work than
just this so they've sat in my branch for some time. Rather than have it
go to waste, here's the patch.

Oliver

diff --git a/Completion/Unix/Command/_imagemagick b/Completion/Unix/Command/_imagemagick
index 3afa108ae..b7671fe49 100644
--- a/Completion/Unix/Command/_imagemagick
+++ b/Completion/Unix/Command/_imagemagick
@@ -262,7 +262,10 @@ case "$service" in
     _arguments -C -M 'm:{a-z}={A-Z}' \
       '-adjoin[join images]' \
       '-affine[drawing transform matrix]:matrix' \
+      '-alpha[set the alpha channel]:alpha' \
       '-antialias[remove pixel aliasing]' \
+      '-authenticate[decrypt image with specified password]:password' \
+      '-attenuate[lessen (or intensify) when adding noise to an image]:value' \
       '-append[append image sequence]' \
       '-average[average image sequence]' \
       '-background[specify background color]:color:_x_color' \
@@ -301,6 +304,7 @@ case "$service" in
       '(-endian)+endian' \
       '-enhance[enhance image]' \
       '-equalize[histogram equalization]' \
+      '-features[analyze image features (e.g. contrast, correlation)]:distance' \
       '-fill[specify color to use when filling a graphic primitive]:color:_x_color' \
       '-filter:filter type for resizing:(Point Box Triangle Hermite Hanning Hamming Blackman Gaussian Quadratic Cubic Catrom Mitchell Lanczos Bessel Sinc)' \
       '-flatten[flatten a sequence of images]' \
@@ -315,12 +319,14 @@ case "$service" in
       '-gravity:image gravity:(Center North NorthEast East SouthEast South SouthWest West NorthWest)' \
       '-implode:implosion factor (0.0 - 99.9%%)' \
       '-interlace:interlacing scheme:(None Line Plane Partition)' \
+      '-interpolative-resize[resize image using point sampled interpolation]:geometry' \
       '-label:label string' \
       '-layer:layer type:(Red Green Blue Matte)' \
       '-linewidth:line width' \
       '-loop:number of iterations (GIF animation)' \
       '-map[single image colormap file]:picture file for colors:_imagemagick' \
       '+map[all images colormap file]:picture file for colors:_imagemagick' \
+      '-mask[associate a mask with the image]:file:_files' \
       '-matte[store matte channel]' \
       '-modulate:<brightness>,<saturation>,<hue>' \
       '-monochrome[transform to black and white]' \
@@ -352,6 +358,7 @@ case "$service" in
       '-size:image size (<width>x<height>+<offset>)' \
       '-solarize:solarization threshold' \
       '-spread:neighborhood size' \
+      '-support[specify resize support]:support (>1.0 is blurry, < 1.0 is sharp)' \
       '-swirl:swirl tightness' \
       '-texture:background texture image:_imagemagick' \
       '-threshold:threshold for maximum intensity' \


           reply	other threads:[~2020-08-12 10:05 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <65821-1597226355.248205.ref@U4of.LGMm.cUNE>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=65821-1597226355.248205@U4of.LGMm.cUNE \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).