[Pkg-zsh-devel] Bug#763343: Missing JPEG 2000 file extensions / imagemagick|graphicsmagick

Mathieu Malaterre malat at debian.org
Mon Sep 29 13:48:45 UTC 2014


Package: zsh
Version: 5.0.6-1
Tags: patch

Please update the list of image format:

$ cat /usr/share/zsh/functions/Completion/Unix/_imagemagick|_graphicsmagick
[...]
formats=jpg:jpeg:tiff:miff:ras:bmp:cgm:dcx:ps:eps:fig:fits:fpx:gif:mpeg:pbm:pgm:ppm:pcd:pcl:pdf:pcx:png:rad:rgb:rgba:rle:sgi:html:shtml:tga:ttf:uil:xcf:xwd:xbm:xpm:yuv
[...]

into

formats=jpg:jpeg:jp2:j2k:jpc:jpx:jpf:tiff:miff:ras:bmp:cgm:dcx:ps:eps:fig:fits:fpx:gif:mpeg:pbm:pgm:ppm:pcd:pcl:pdf:pcx:png:rad:rgb:rgba:rle:sgi:html:shtml:tga:ttf:uil:xcf:xwd:xbm:xpm:yuv


As per references:

$ grep jp2 /etc/ImageMagick/mime.xml
  <mime type="image/jp2" description="JPEG-2000 image"
data-type="string" offset="4" magic="jP" priority="50" />
  <mime type="image/jp2" description="JPEG-2000 image"
data-type="string" offset="0" magic="\xFF\x4F\xFF\x51\x00"
priority="50" />
  <mime type="image/jp2" description="JPEG-2000 image"
data-type="long" endian="MSB" offset="3" magic="0x0c6a5020"
priority="50" />
  <mime type="image/jp2" description="JPEG-2000 image" priority="100"
pattern="*.jp2" />
  <mime type="image/jp2" description="JPEG-2000 image" priority="100"
pattern="*.jpc" />
  <mime type="image/jp2" description="JPEG-2000 image" priority="100"
pattern="*.jpx" />
  <mime type="image/jp2" description="JPEG-2000 image" priority="100"
pattern="*.j2k" />
  <mime type="image/jp2" description="JPEG-2000 image" priority="100"
pattern="*.jpf" />

Regards.



More information about the Pkg-zsh-devel mailing list