Skip to content

An equivalent to getImageProperties #218

Closed Answered by jcupitt
boan-jfm asked this question in Q&A
Discussion options

You must be logged in to vote

I added getFields() to git master php-vips:

97c3fd8

There's an example program here:

https://github.com/libvips/php-vips/blob/master/examples/fields.php

You can run it like this:

john@banana ~/GIT/php-vips/examples (master) $ ./fields.php ~/pics/k2.jpg
/home/john/pics/k2.jpg
width: 1450
height: 2048
bands: 3
format: uchar
coding: none
interpretation: srgb
xoffset: 0
yoffset: 0
xres: 2.835
yres: 2.835
filename: /home/john/pics/k2.jpg
vips-loader: jpegload
jpeg-multiscan: 0
jpeg-chroma-subsample: 4:2:0
exif-data: ExifII�V

Though the binary data obviously doesn't display so well.

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@boan-jfm
Comment options

@boan-jfm
Comment options

Answer selected by boan-jfm
Comment options

You must be logged in to vote
5 replies
@jcupitt
Comment options

@boan-jfm
Comment options

@jcupitt
Comment options

@jcupitt
Comment options

@boan-jfm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants