Page 1 of 1

Advance -info...

Posted: Mon Jan 28, 2008 5:53 pm
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! :)

Re: Advance -info...

Posted: Mon Jan 28, 2008 7:04 pm
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

Posted: Mon Jan 28, 2008 8:35 pm
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]

Posted: Mon Jan 28, 2008 10:22 pm
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?

Posted: Tue Jan 29, 2008 1:42 pm
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

Posted: Tue Feb 05, 2008 1:34 pm
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

Posted: Thu Feb 07, 2008 5:40 pm
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"...

Posted: Fri Feb 08, 2008 8:26 am
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...

Posted: Tue Feb 12, 2008 4:08 pm
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?

Posted: Tue Feb 12, 2008 5:15 pm
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

Posted: Mon Mar 24, 2008 10:10 pm
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!

Posted: Tue Mar 25, 2008 7:23 am
by xnview
So perhaps something like Metadata(Exif, Iptc)?
And perhaps an option to list iptc & exif?

Posted: Tue Mar 25, 2008 9:37 pm
by Cinemaizer
And perhaps an option to list iptc & exif?
So it will be cool! :P

Posted: Sat Mar 29, 2008 1:36 pm
by Cinemaizer
Great Thanks for METADATA support with -info and -fullinfo keys, Pierre!!! 8)