Search found 5 matches

by AlexPUA
2017-11-11T03:32:19-07:00
Forum: Users
Topic: how to get de-facto bits-per-pixel image property via identify
Replies: 8
Views: 4465

Re: how to get de-facto bits-per-pixel image property via identify

This code really works @ ImageMagick-7.0.3-Q16 and ImageMagick-7.0.7-Q16 (Windows-64)

Code: Select all

for %%F in (*.jpg) do magick convert "%%F" -format """%%f"" %%[fx:%%~zF/w/h]\n" info: >> files_info.txt
by AlexPUA
2017-11-10T05:42:14-07:00
Forum: Users
Topic: how to get de-facto bits-per-pixel image property via identify
Replies: 8
Views: 4465

Re: how to get de-facto bits-per-pixel image property via identify

So, is there no solution inside IM at all ? Quite strange for such a powerful tool with all (trivial) data on the fingertips ...
by AlexPUA
2017-11-10T02:15:18-07:00
Forum: Users
Topic: how to get de-facto bits-per-pixel image property via identify
Replies: 8
Views: 4465

how to get de-facto bits-per-pixel image property via identify

The goal is to get value (file_size_in_bytes)/(image_height*image_width) in massive (Windows !) batch. There are two problems (for me as a beginner): - I found no -format option to get "always integer" filesize in bytes (%[size] give KB or MB values) to do math externally - "obvios" calculations via ...
by AlexPUA
2017-11-10T00:56:36-07:00
Forum: Users
Topic: how to identify channel statistics with identify -format only
Replies: 4
Views: 3859

Re: how to identify channel statistics with identify -format only

Thanks a lot ! So, a got the way to get image composite and channels info in-one-line is (in Windows BAT format) identify -format "%%f %%[width] %%[height] %%[size] %%[colors] %%[entropy] %%[kurtosis] %%[mean] %%[skewness] %%[standard-deviation] " %1 >> %1.iinfo convert %1 -channel red -format "red ...
by AlexPUA
2017-11-09T23:17:04-07:00
Forum: Users
Topic: how to identify channel statistics with identify -format only
Replies: 4
Views: 3859

how to identify channel statistics with identify -format only

What is the format option(-s) to get info from "Channel statistics:" block of -verbose option without image conversions Such as (for example) identify -format "%f %[skewness]\n" filename.jpg but for red (for example) channel - not for all image statistics Channel statistics: Pixels: 2920225 Red ...