Buy for $9!  (10 formats)

Keywords:
tga, pnm, dds, pgm, ppm, pbm, mbg, ghg, gr8, avs, 411, koa, ipt, gig, ocp, a64, dxt1, dxt3, dxt5, pfm, rle, yuv, ascii, koala,

Ziin Image Formats for PHP

Ziin Image Formats is a library for PHP which supports over 120 image formats.
It is written entirely in PHP- does not require any command line programs or compiled libraries.
You can use it just like the formats built into PHP (png, gif, bmp, wbmp, xbmp): imagecreatefromXXX($filename) and imageXXX($im, $filename) where XXX is a file extension.
For example you can write: imagecreatefromtga($filename) to load a TGA image. And if you want to save an image in TGA format just write: imagetga($im, $filename) Additionally Ziin Image Formats give you one function to load any of the supported formats (including PHP built-in formats): imagecreatefromfile($filename) and a similar way to write image to file: imagefile($im, $filename) Format to use will be autodetected from filename's extension.

You get just two simple functions to load and save lots of different image formats.
Ask yourself how much time you can save with this library!
So don't wait any longer and get this library now in promotional, time-limited price!
Features & comparison
  Ziin Image Formats   XnView   IrfanView
  Read Write   Read Write   Read Write
Portable aNy Map (.pnm)
Portable Bit Map (.pnm, .pbm, .rpbm)
1bit + +   + +   + +
1bit ascii + +   + +   + +
Portable Gray Map (.pnm, .pgm, .rpgm)
8bit + +   + +   + +
8bit ascii + +   + +   + +
Portable Pix Map (.pnm, .ppm, .rppm)
24bit + +   + +   + +
24bit ascii + +   + +   + +
Portable Float Map (.pfm)
8bit + +   + -   - -
24bit + +   + -   - -
Targa Graphic (.tga, .targa)
1bit + +   + +   - -
8bit + +   + +   + +
8bit RLE + -   + +   + -
15bit + +   + -   + -
24bit + +   + +   + -
24bit RLE + -   + +   + -
32bit + +   + +   + -
32bit RLE + -   + +   + -
Direct Draw Surface (.dds)
24bit DXT1 + +   + +   + -
32bit DXT1 + -   + +   + -
24bit DXT3 + -   + -   + -
32bit DXT3 + -   + -   + -
24bit DXT5 + -   + -   + -
32bit DXT5 + -   + -   + -
Stardent AVS X (.avs, .x)
24bit + +   - -   - -
Sony Mavica (.411)
YUV 4:1:1 + +   + -   - -
ZSoft Paintbrush (.pcx)
8bit + +   + +   + -
8bit RLE + -   + +   + +
24bit + +   + +   + -
24bit RLE + -   + +   + +
Silicon Graphics RGB (.bw, .rgba, .rgb, .sgi)
8bit gray + +   + -   - -
24bit + +   + +   + -
32bit + +   + +   + -
MTV / RayShade Image (.mtv)
24bit + +   + +   - -
DKB Trace / Qrt raytrace (.dis)
24bit + +   + +   - -
HTML Table Image (.htm, .html)
24bit + +   - -   - -
Vista (.vst)
24bit + +   + +   - -
SciTex (.sct)
24bit + +   + +   - -
Bio-Rad (.pic)
24bit + +   + +   - -
Dr. Halo CUT (.cut)
24bit + -   + -   - -
Ninell Graphic Format (.ngf)
8bit + +   - -   - -
ASCII Art (.txt)
8bit grayscale + +   - -   + -
iNFO file (.nfo)
8bit grayscale + +   - -   - -
RAW (.raw)
24bit + +   + +   - -
UYVY (.yuv)
16bit + +   + +   - -
AutoPano RAW (.kro)
8bit (grayscale) + +   + +   + -
VRML V2.0 (.wrl)
24bit + +   - -   - -
CSV (.csv)
8bit + +   - -   - -
Khoros Visualization Image File Format (.viff)
24bit + +   + -   - -
Flexible Image Transport System (.fts, .fits)
8bit + +   + +   - -
ImageMagick pixel enumeration (.txt)
24bit + +   - -   - -
Adobe Photoshop (.psd)
1bit + -   + -   - -
8bit (grayscale) + -   + -   - -
8bit (palette) + -   + -   - -
24bit + +   + -   - -
32bit + -   + -   - -
CMYK + -   + -   - -
CMYK RLE + -   + -   - -
Lab + -   + -   - -
Lab RLE + -   + -   - -
JPEG (.jif, .jfi, .jfif, .jpe, .jpeg, .jpg)
24bit + +   + +   + +
iPod Thumbnail (.ithmb)
Gen 4 16bit YUV + +   + -   - -
Gen 5 16bit YUV + +   + -   - -
MONO (.mono)
24bit + +   - -   - -
Dune Image (.aai)
24bit + +   - -   - -
Cisco IP Phone (.cip)
24bit + +   + -   - -
Radiance (.rad)
24bit + +   - -   - -
Autodesk Animator (.cel)
24bit + +   - -   - -
Video renting box SKA (.ska)
24bit + +   - -   - -
GIMP Brush (.gbr)
24bit + +   - -   - -
GIMP header image file format (.h)
24bit - -   - -   - -
GIMP Pattern (.pat)
24bit + +   - -   - -
QuickTime Image (.qtif)
24bit + -   + -   - -
Pfs First Publisher (.art)
1bit + -   + -   - -
Print Shop (.psa, .psb)
1bit + +   + -   - -
Palm Pilot Image (.pdb)
2bit + +   + -   - -
Animated PNG (.apng)
24bit + -   + -   - -
Psion Series 5 Bitmap (.mbm)
24bit + +   + -   - -
Macintosh specific formats
MacPaint (.mac)
1bit + -   + -   - -
Cellphone specific formats
Nokia Over The Air Bitmap (.otb)
1bit + +   + +   - -
Nokia Operator Logo (.nol)
1bit + +   + +   - -
Nokia Group Graphics (.ngg)
1bit + +   + +   - -
Nokia Logo File (.nlm)
1bit + +   + +   - -
Ti-92 Bitmap (.92i)
1bit + -   + +   - -
Television specific formats
Slow Scan Television (.hrz)
24bit + +   + +   - -
Atari specific formats
Gr8 (.gr8)
1bit + +   - -   - -
NeoChrome (.neo)
1bit + -   - -   - -
2bit - -   - -   - -
4bit - -   - -   - -
Degas/Degas Elite (.pi1, .pi2, .pi3)
1bit + +   + -   - -
2bit + +   + -   - -
4bit + +   + -   - -
ST-DEXL Pictures Set (.ps1)
4bit + -   - -   - -
G09 (.g09)
8bit + +   - -   - -
BG9 (.bg9)
8bit + +   - -   - -
GR9 (.gr9)
8bit + +   - -   - -
Jet Graphics Planner (.jgp)
2bit + -   - -   - -
SXS font (.sxs)
1bit + -   - -   - -
Graph2Font (.mch)
1bit + -   - -   - -
Movie Maker Background (.bkg)
1bit + +   - -   - -
Gephard Hires Graphics (.ghg)
1bit + +   - -   - -
Blazing Paddles Window Window (.wnd)
1bit + +   - -   - -
Mad Designer (.mbg)
1bit + +   - -   - -
MIC (.mic)
1bit + -   - -   - -
Blazing Paddles/Movie Maker shape (.shp)
1bit + +   - -   - -
Commodore specific formats
Doodle (.dd)
1bit + +   + -   - -
Fun Graphics Machine (.fgs)
1bit + +   + -   - -
Gigacad (.gcd)
1bit + +   + -   - -
Gigapaint-Hires (.gih)
1bit + +   + -   - -
Hi-Eddi (.hed)
1bit + +   + -   - -
Hires-Bitmap (.hir, .hbm)
1bit + +   + -   - -
Interpaint (.iph)
4bit + +   + -   - -
Image System (.ish)
4bit + +   + -   - -
Mono Magic (.mon)
4bit + +   + -   - -
Art Studio (.art)
4bit + +   + -   - -
Run Paint (.rpm)
4bit + +   + -   - -
Face Painter (.fpt)
4bit + +   + -   - -
Create with Garfield (.cwg)
4bit + +   + -   - -
Dolphin Ed (.dol)
4bit + +   + -   - -
Image System (.ism)
4bit + +   + -   - -
Drazpaint (.drz)
4bit + +   + -   - -
Cheese (.che)
4bit + +   + -   - -
Micro Illustrator (.mil)
4bit + +   + -   - -
Vidcom 64 (.vid)
4bit + +   + -   - -
Rainbow Painter (.rp)
4bit + +   + -   - -
Paint Magic (.pmg)
4bit + +   + -   - -
CDU-Paint (.cdu)
4bit + +   + -   - -
Picasso 64 (.p64)
4bit + +   + -   - -
Saracen Paint (.sar)
4bit + +   + -   - -
Drazlace (.drl)
4bit + +   + -   - -
Truepaint (.mci)
4bit + +   + -   - -
Amica Paint (packed) (.ami)
4bit + -   + -   - -
Koala Painter 2 (packed) (.gg)
4bit + -   + -   - -
Doodle (packed) (.jj)
4bit + -   + -   - -
Drazlace (packed) (.dlp)
4bit + -   + -   - -
Artist 64 (.a64)
4bit + +   + -   - -
Blazing Paddles (.pi)
4bit + +   + -   - -
Koala Painter (.koa)
4bit + +   + -   - -
Gigapaint Multicolour (.gig)
4bit + +   + -   - -
Interpaint Multicolour (.ipt)
4bit + +   + -   - -
Advanced Art Studio (.ocp)
4bit + +   + -   - -

PHP limits
Unfortunately PHP is not designed to handle huge files, so in order to load/save huge images you might need to allocate lots of memory and increase timeout. For example: to increase memory to 128MB and timeout to 10 seconds you can write: ini_set('memory_limit', '128M');
ini_set('max_execution_time', 10);