Advance -info...

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
Cinemaizer
Posts: 23
Joined: Mon Jan 28, 2008 2:22 pm
Location: Russia

Advance -info...

Post by Cinemaizer »

Good day Pierre!
Great Thanks for your ultrafast and powerful nconvert tool!
Would you mind, if i give you some suggestion on how i see it working even more perfect? It's about -info key...

First, i have need for the external information about images. For example, color space... i know there is such info with -v key, but i think it should be with -info key also.
Second, sometimes there are situations, then binary header scan info is ok, but image couldn't be converted. And, question - how you can quickly find out, is the file damaged the image file or not, and also put the result of this test into info list output, as usual?. I understand that the issue "success" or "failed" means the result of header's scan ONLY , but not the integrity of image and loading possibility. Right?

P.S.:

Often, i use your nconvert in 2 steps:
1) With bat-file, collect images information (dimensions, etc.) with filelist and put it into the resulting info-list(txt).
2) Parse this info-list and being based on this data just to launch a new nconvert-process to convert images.

Thanks in advance! :)
Last edited by Cinemaizer on Mon Jan 28, 2008 7:14 pm, edited 1 time in total.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Advance -info...

Post by xnview »

Cinemaizer wrote: First, i need for the external information about images. For example, color space... i know there is such info with -v key, but i think it must be with -info key also.
I'll add it
Second, sometimes there are situations, when with binary header scan info all is ok, but image couldn't be converted.
And the picture is ok? You convert into which format?
And, question - how fastly to define damaged the image file or normal, and also put the result of this test into info list output, as usual. i've understood that the issue "success" or "failed" means the result of header's scan ONLY , but not the integrity of image and loading possibility. Right?
The only way is to load the file
Pierre.
User avatar
Cinemaizer
Posts: 23
Joined: Mon Jan 28, 2008 2:22 pm
Location: Russia

Post by Cinemaizer »

I'll add it
Cool! Thanks!
You convert into which format?
only one at this moment - jpg.
And the picture is ok?
I convert the image files from cd\dvd. And in advance i don't know the good file or not, therefore i use the pre-scan with nconvert and -info key. For example, sometimes(seldom), issue of check file is "success", but in result of converting is not good - there is one half of image is gray:( Probably it happens when the cd or dvd surface was somewhat damaged, and reading process was poor.
The only way is to load the file
Sorry, but i'm not quite understand you... If i get(with -info key before) the issue "success" - does it mean that appropriate image file will be converted properly?

[/quote]
User avatar
Cinemaizer
Posts: 23
Joined: Mon Jan 28, 2008 2:22 pm
Location: Russia

Post by Cinemaizer »

Sorry, but i'm not quite exactly explain the problem. Disk (cd) really was damaged:( And with the first step nconvert (with collecting information) was trying to scan many-many time the corrupted file, probably...
May be to implement any "skip operation" by timeout for the solution such situations?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Cinemaizer wrote:
You convert into which format?
only one at this moment - jpg.
So use -grey to be able to convert B&W to jpeg
And the picture is ok?
I convert the image files from cd\dvd. And in advance i don't know the good file or not, therefore i use the pre-scan with nconvert and -info key. For example, sometimes(seldom), issue of check file is "success", but in result of converting is not good - there is one half of image is gray:( Probably it happens when the cd or dvd surface was somewhat damaged, and reading process was poor.
The only way is to load the file
Sorry, but i'm not quite understand you... If i get(with -info key before) the issue "success" - does it mean that appropriate image file will be converted properly?
-info read only the header not the full file, so it's not possible to know if the file is complete before to load it
Pierre.
User avatar
Cinemaizer
Posts: 23
Joined: Mon Jan 28, 2008 2:22 pm
Location: Russia

Post by Cinemaizer »

Thanks a lot for nconvert 4.86 release and "colorspace info" implementation!
With the damaged disk all is ok - just the cd-rom's speed was falling and so the frequency of scan files headers info also significantly was falling. :P
User avatar
Cinemaizer
Posts: 23
Joined: Mon Jan 28, 2008 2:22 pm
Location: Russia

Post by Cinemaizer »

Pierre!
Sorry for worry, but seems there is a problem with -info with grayscale images. That is some results:

"j:\for_Nata\sample1.jpg : Success
Format : JPEG Grayscale (v1.2)
Name : jpeg
Compression : JPEG
Width : 1024
Height : 768
Components per pixel : 1
Bits per component : 8
Depth : 8
# colors : 256
Color model : RGB
Bytes Per Plane : 1024
Orientation : Top Left
Xdpi : 180
Ydpi : 180
Page(s) : 1"

Is this possible? RGB with 256 colors... The same result (=Color model RGB) with other formats - i've tried *.png(grayscale), *.tif(grayscale), etc.

I think the "Color model" must be "Gray" or "Grayscale"...
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Cinemaizer wrote: I think the "Color model" must be "Gray" or "Grayscale"...
When i read header, i can't not know if it's a colormap or grayscale picture for many formats...
Pierre.
User avatar
Cinemaizer
Posts: 23
Joined: Mon Jan 28, 2008 2:22 pm
Location: Russia

Post by Cinemaizer »

Hmm... there is no any way to get the grayscale colormap with -info ?
Ok, if file's format the jpg - no problem - the string " Format : JPEG Grayscale (v1.2) " mean that grayscale colormap there. But how to get this info for another formats?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Cinemaizer wrote:Grayscale (v1.2) " mean that grayscale colormap there. But how to get this info for another formats?
Not possible because i don't know with -info if there is a colormap
Pierre.
User avatar
Cinemaizer
Posts: 23
Joined: Mon Jan 28, 2008 2:22 pm
Location: Russia

Post by Cinemaizer »

Hello Pierre!
Could you implement two new features with -info key...
1) EXIF flag (with yes\no values for ex.)?
2) Filesize (in bytes)

So, I mean the following thing:

Q:\SLIDE-SHOW\BK0157.jpg : Success
Format : JPEG TrueColor (v1.1)
Name : jpeg
Compression : JPEG
Width : 1500
Height : 1200
Components per pixel : 3
Bits per component : 8
Depth : 24
# colors : 16777216
Color model : RGB
Bytes Per Plane : 4500
Orientation : Top Left
Xdpi : Not set
Ydpi : Not set
Page(s) : 1
EXIFdata : Yes
Filesize : 325945

Thanks in advance!
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

So perhaps something like Metadata(Exif, Iptc)?
And perhaps an option to list iptc & exif?
Pierre.
User avatar
Cinemaizer
Posts: 23
Joined: Mon Jan 28, 2008 2:22 pm
Location: Russia

Post by Cinemaizer »

And perhaps an option to list iptc & exif?
So it will be cool! :P
User avatar
Cinemaizer
Posts: 23
Joined: Mon Jan 28, 2008 2:22 pm
Location: Russia

Post by Cinemaizer »

Great Thanks for METADATA support with -info and -fullinfo keys, Pierre!!! 8)
Post Reply