Avatar billede phpbuilderdk Nybegynder
06. oktober 2001 - 12:27 Der er 6 kommentarer og
1 løsning

Billed info

er der nogle default functioner til at få informationer om billedet, størrelse i kB dementioner antal faver osv
Avatar billede morw Nybegynder
06. oktober 2001 - 12:36 #1
getimagesize()
Avatar billede morw Nybegynder
06. oktober 2001 - 12:38 #2
jeg bruger også http://www.imagemagick.org/www/identify.html

men det kræver at programmet ligger på serveren
Avatar billede phpbuilderdk Nybegynder
06. oktober 2001 - 12:43 #3
Hvad med information om farve kb osv ???
Avatar billede morw Nybegynder
06. oktober 2001 - 12:45 #4
identify giver dig det:

Image: images/aquarium.miff
      class: PseudoClass
      colors: 256
      signature: eb5dca81dd93ae7e6ffae99a5275a53e
      matte: False
      geometry: 640x480
      depth: 8
      bytes: 308135
      format: MIFF
      comments:
Avatar billede morw Nybegynder
06. oktober 2001 - 12:47 #5
Det fede ved www.imagemagick.org er at det virker med *mange* filtyper:

AVS - AVS X image file.
BIE+ - Joint Bi-level Image experts Group file interchange format.
BMP+ - Microsoft Windows bitmap image file.
BMP24+ - Microsoft Windows 24-bit bitmap image file.
CGM - Computer Graphics Metafile.
CMYK - Raw cyan, magenta, yellow, and black bytes.
DCX+ - ZSoft IBM PC multi-page Paintbrush file.
DIB - Microsoft Windows bitmap image file.
DICOM - Medical image file.
EPDF - Encapsulated Portable Document Format.
EPI - Adobe Encapsulated PostScript Interchange format.
EPS - Adobe Encapsulated PostScript file.
EPS2 - Adobe Level II Encapsulated PostScript file.
EPSF - Adobe Encapsulated PostScript file.
EPSI - Adobe Encapsulated PostScript Interchange format.
EPT - Adobe Encapsulated PostScript Interchange format with TIFF preview.
FAX+ - Group 3.
FIG - TransFig image format.
FITS - Flexible Image Transport System.
FPX - FlashPix Format.
GIF - CompuServe graphics interchange format; 8-bit color.
GIF87 - CompuServe graphics interchange format; 8-bit color (version 87a).
GRAY - Raw gray bytes.
GRADIENT- gradual passing from one shade to another. Specify the desired shading with the filename (e.g. gradient:red-blue).
GRANITE - granite texture.
HDF+ - Hierarchical Data Format.
HISTOGRAM
HPGL - HP-GL plotter language.
HTML - Hypertext Markup Language a with client-side image map.
JBIG+ - Joint Bi-level Image experts Group file interchange format.
JPEG - Joint Photographic Experts Group JFIF format; compressed 24-bit color.
ICO - Microsoft icon.
LABEL - text image.
MAP - colormap intensities and indices.
MIFF+ - Magick image file format.
MNG+ - Multiple-image Network Graphics.
MONO - Bi-level bitmap in least-significant-byte (LSB) first order.
MPEG+ - Motion Picture Experts Group file interchange format.
MTV+ -
MVG - Magick Vector Graphics.
M2V+ - Motion Picture Experts Group file interchange format (version 2).
NETSCAPE - Netscape 216 color cube.
NULL - NULL image.
PBM+ - Portable bitmap format (black and white).
PCD - Photo CD. The maximum resolution written is 512x768 pixels.
PCDS - Photo CD. Decode with the sRGB color table.
PCL - Page Control Language.
PCX - ZSoft IBM PC Paintbrush file.
PDF+ - Portable Document Format.
PGM+ - Portable graymap format (gray scale).
PICT - Apple Macintosh QuickDraw/PICT file.
PIX - Alias/Wavefront RLE image format.
PLASMA - plasma fractal image. Specify the base color as the filename (e.g. plasma:gray). Use fractal to initialize to a random value (e.g. plasma:fractal).
PNG - Portable Network Graphics.
PNM+ - Portable anymap.
PPM+ - Portable pixmap format (color).
PS+ - Adobe PostScript file.
PSD - Adobe PhotoShop bitmap file.
PS2+ - Adobe Level II PostScript file.
RAD - Radiance image file.
RGB - Raw red, green, and blue bytes.
RGBA - Raw red, green, blue, and matte bytes.
RLA - Alias/Wavefront image file; read only.
RLE - Utah Run length encoded image file; read only.
SGI+ - Irix RGB image file.
SHTML - Hypertext Markup Language a with client-side image map.
SUN+ - SUN Rasterfile.
SVG+ - Scalable Vector Graphics.
TEXT - raw text file; read only.
TGA+ - Truevision Targa image file.
TIFF+ - Tagged Image File Format.
TIFF24+ - 24-bit Tagged Image File Format.
TILE - tile image with a texture.
TIM - PSX TIM file.
TTF - TrueType font file.
UIL - X-Motif UIL table.
UYVY - Interleaved YUV.
VICAR - read only.
VID - Visual Image Directory.
VIFF+ - Khoros Visualization image file.
WIN - select image from or display image to your computer screen.
X - select image from or display image to your X server screen.
XC - constant image of X server color. Specify the image color as the filename (e.g. xc:yellow).
XBM - X Windows system bitmap, black and white only.
XPM - X Windows system pixmap file (color).
XWD - X Windows system window dump file (color).
YUV+ - CCIR 601 4:1:1 file.
Avatar billede phpbuilderdk Nybegynder
06. oktober 2001 - 12:48 #6
Kan man ikke gøre det uden programmet ?
Avatar billede morw Nybegynder
06. oktober 2001 - 12:50 #7
Ved ikke om GD kan gøre det, men så skal du jo have det ind i php. Mener heller ikke det understøtter så mange farver som imagemagick.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester