Hello,
Is it possible to pick specific properties once image is converted to json output instead of getting everything?
Extracting properties from JSON output
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Extracting properties from JSON output
When IM writes to "json:", it writes all the properties. You can then use an external program such as grep to filter the results, eg:
Code: Select all
magick toes.png -format %wx%h json: |grep gamma
"gamma": 0.45455,
"png:gAMA": "gamma=0.45454544 (See Gamma, above)",
snibgo's IM pages: im.snibgo.com
Re: Extracting properties from JSON output
Thanks,
It will not work in my case since we are expecting and parsing actual json object
It will not work in my case since we are expecting and parsing actual json object