Skip to content

Instantly share code, notes, and snippets.

@neilinglis
Created July 9, 2013 12:10
Show Gist options
  • Save neilinglis/5956866 to your computer and use it in GitHub Desktop.
Save neilinglis/5956866 to your computer and use it in GitHub Desktop.
NSImage's imageFileTypes
types = (
"'PDF '",
PDF,
pdf,
"'PICT'",
PIC,
pic,
PCT,
pct,
PICT,
pict,
"'EPSF'",
PS,
ps,
EPSI,
epsi,
EPSF,
epsf,
EPI,
epi,
EPS,
eps,
"'BMPf'",
"'PNTG'",
"'.SGI'",
"'TPIC'",
"'BMP '",
"'8BPS'",
"'icns'",
"'TIFF'",
"'jp2 '",
"'GIFf'",
"'PNGf'",
"'JPEG'",
MPO,
mpo,
HDR,
hdr,
EXR,
exr,
MAC,
mac,
PNT,
pnt,
PNTG,
pntg,
RGB,
rgb,
SGI,
sgi,
TARGA,
targa,
TGA,
tga,
CUR,
cur,
XBM,
xbm,
BMP,
bmp,
ICO,
ico,
PSD,
psd,
ORF,
orf,
MRW,
mrw,
RWL,
rwl,
RW2,
rw2,
RAW,
raw,
RAF,
raf,
CRW,
crw,
ICNS,
icns,
EFX,
efx,
JFAX,
jfax,
JFX,
jfx,
G3,
g3,
FAX,
fax,
TIFF,
tiff,
DCR,
dcr,
ERF,
erf,
ARW,
arw,
SR2,
sr2,
SRF,
srf,
SRW,
srw,
PEF,
pef,
NRW,
nrw,
NEF,
nef,
3FR,
3fr,
FFF,
fff,
MOS,
mos,
CR2,
cr2,
DNG,
dng,
TIF,
tif,
JPF,
jpf,
JP2,
jp2,
GIF,
gif,
PNG,
png,
JPS,
jps,
JFIF,
jfif,
JPE,
jpe,
JPEG,
jpeg,
JPG,
jpg
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment