I've been running around in circles trying to workout where ImageMagick gets the colorspace of a JPEG from, I know there must be somewhere in the metadata, but I can't for the life of me find it and traversing the IM source is not as easy as I thought it would be

any help would be great
I know that when you do an identify -verbose you get a couple of colorspace related info
1) Type: <colorspace>
from Properties:
1) exif:ColorSpace: -1 <-- this is useless unforunately
2) jpeg:colorspace: 1 <-- either this or the previously mentioned "Type" seem to be what im looking for but i can't find the tag it is referreing to.