NConvert, Canon CRW to Jpeg size problem

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

Moderators: helmut, XnTriq, xnview

Post Reply
mr_munchie
Posts: 5
Joined: Fri Feb 18, 2005 8:26 pm
Location: Prince Albert, Canada
Contact:

NConvert, Canon CRW to Jpeg size problem

Post by mr_munchie »

I'm new to XnView and need some help with NConvert.

I want to convert my Canon CRW files to Jpegs using a batch file.

When I try this a get a file that is very small 97.88 KB compared to the original 7.08 MB.

I have tried to use XnView and export for NConvert. This file contained nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -o
C:\PASS\Scripts\Under construction\image\image\newfiles\converted "C:\PASS\Scripts\Under construction\image\image\newfiles\converted\CRW_0221.CRW"

With this I had to use " as the path name has spaces in it and inculde a output file name.
This still creates a 97.88KB file.

I wrote a batch file, containing:
nconvert.exe -out jpeg "C:\PASS\Scripts\Under
construction\image\image\newfiles\originals\CRW_0220.CRW"
This also creates a 97.88KB file.

What am I doing worng?
Is it possible to convert Canon CRW to Jpeg using NConvert?

Please help
mr_munchie
Posts: 5
Joined: Fri Feb 18, 2005 8:26 pm
Location: Prince Albert, Canada
Contact:

Update: More information

Post by mr_munchie »

I've run this batch with the -v on and piped the output to a file.
I still get the small file produced.

Taken from output file:
C:\Images\Test>C:\Progra~1\xnview\nconvert.exe -npcd 2 -v -size 256x256+0 -ctype grey -corder inter -out jpeg -o C:\Images\Test\TEST.jpg "C:\Images\Test\CRW_0370.CRW"
** NCONVERT v4.25 (c) 1991-2004 Pierre-E Gougelet (Oct 8 2004/15:42:00) **
Version for Windows NT/9x/2000 (All rights reserved)
** This is a freeware software (for non commercial use)

A Canon PowerShot (RGB) - JPEG was recognized : C:\Images\Test\CRW_0370.CRW
Width:640 Height:480 with 16777216 colors
Nplanes : 1 Bitscount : 24
Bytes Per Plane : 1920
xdpi : 1 ydpi : 1


Taken from output in DOs window:
A Jpeg was writen : C:\Images\Test\TEST.jpg
Width:640 Height:480 with 16777216 colors

Conversion of C:\Images\Test\CRW_0370.CRW into C:\Images\Test\TEST.jpg OK

Also when I click the "Save Script" button itjust saves a 0 byte sized file.

I have also noticed that when I view the CRW files properties in XnView it shows the corect files size but the image dimensions are 640 x 480, for jpegs is shows the correct dimensions. Is this normal?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Update: More information

Post by xnview »

mr_munchie wrote:I have also noticed that when I view the CRW files properties in XnView it shows the corect files size but the image dimensions are 640 x 480, for jpegs is shows the correct dimensions. Is this normal?
Do you have tried options/Read/CRW/High resolution in XnView, and -high_res for NConvert?
Pierre.
mr_munchie
Posts: 5
Joined: Fri Feb 18, 2005 8:26 pm
Location: Prince Albert, Canada
Contact:

Update: Size problem fixed, now have a colour problem

Post by mr_munchie »

The -high_res option fixed the size problem.

Now I have a new problem, the wite balance. The picture turns orange.

I had this p[roblem with XnView. Turning on automatic white balance fixed this.

I can't find a use automatic white balance option for NConvert.

Is there one?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Update: Size problem fixed, now have a colour problem

Post by xnview »

mr_munchie wrote:The -high_res option fixed the size problem.

Now I have a new problem, the wite balance. The picture turns orange.

I had this p[roblem with XnView. Turning on automatic white balance fixed this.

I can't find a use automatic white balance option for NConvert.

Is there one?
I'll add it in NConvert.
Pierre.
mr_munchie
Posts: 5
Joined: Fri Feb 18, 2005 8:26 pm
Location: Prince Albert, Canada
Contact:

Thanks

Post by mr_munchie »

Thanks for all your help. I like XnView and NConvert. I think they are great programs and very useful.

I shall wait patiently for the next release.
wiffel

wrong size when converting RAW

Post by wiffel »

I seem to have the same problem as reported above. Using the -high_res or not doesn't make a difference. NCONVERT seems to recognize the file as being 980x1308x16 while it's not. Opening the CRW file in XnView gives me the correct size of 1960x2616x24.

Somebody any idea on what I could try ?

Code: Select all

>nconvert.exe -v -high_res -o test_%.png -out png -32bits CRW_0582.crw
** NCONVERT v4.78 (c) 1991-2005 Pierre-E Gougelet (Mar 14 2007/08:54:56) **
        Version for Windows NT/9x/2000  (All rights reserved)
** This is a freeware software (for non commercial use)

Loading Canon PowerShot S60 image from CRW_0582.crw...
Write image...
A PowerShot S60 (RGB) was recognized : CRW_0582.crw
    Width:980 Height:1308 with 16777216 colors
    Nplanes : 1      Bitscount : 24
    Bytes Per Plane : 2940
    xdpi : 0         ydpi : 0
Converting in 32bits...
Conversion of CRW_0582.crw into test_CRW_0582.png OK
[/code]
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: wrong size when converting RAW

Post by xnview »

wiffel wrote:I seem to have the same problem as reported above. Using the -high_res or not doesn't make a difference. NCONVERT seems to recognize the file as being 980x1308x16 while it's not. Opening the CRW file in XnView gives me the correct size of 1960x2616x24.

Somebody any idea on what I could try ?

Code: Select all

>nconvert.exe -v -high_res -o test_%.png -out png -32bits CRW_0582.crw
** NCONVERT v4.78 (c) 1991-2005 Pierre-E Gougelet (Mar 14 2007/08:54:56) **
        Version for Windows NT/9x/2000  (All rights reserved)
** This is a freeware software (for non commercial use)

Loading Canon PowerShot S60 image from CRW_0582.crw...
Write image...
A PowerShot S60 (RGB) was recognized : CRW_0582.crw
    Width:980 Height:1308 with 16777216 colors
    Nplanes : 1      Bitscount : 24
    Bytes Per Plane : 2940
    xdpi : 0         ydpi : 0
Converting in 32bits...
Conversion of CRW_0582.crw into test_CRW_0582.png OK
[/code]
Could you send me the CRW please?
Pierre.
wiffel

Re: wrong size when converting RAW

Post by wiffel »

Could you send me the CRW please?
Hi,

You can find the raw image at http://www.tilient.net/images/CRW_0582.CRW.

It works OK if I use XnView with the right options. So I do have a workaround. But it would be nice if I could use NConvert for it.

Thanks for putting your time into this.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: wrong size when converting RAW

Post by xnview »

wiffel wrote:
Could you send me the CRW please?
Hi,

You can find the raw image at http://www.tilient.net/images/CRW_0582.CRW.

It works OK if I use XnView with the right options. So I do have a workaround. But it would be nice if I could use NConvert for it.

Thanks for putting your time into this.
Ok, i'll update a version!
Pierre.
Guest

Re: wrong size when converting RAW

Post by Guest »

xnview wrote:Ok, i'll update a version!
Hi Pierre,

I did see something strange in XnView that could be related to this. Maybe it can help you, maybe not ...

I noticed that the RAW files show the correct size info in the info bar (at the bottom of the screen) in XnView. But if you click on them (the thumbnail) in the browser window, incorrect size is shown in the info bar. Maybe it's just luck (or unluck in this case) but it is this size that a conversion with NConvert gives as a result.

Wilfried

PS: By the way, I do have the same kind of error when converting PEF files of my GX-1S camera. If it helps you, you can find an example file at http://www.tilient.net/images/SG1S5767.PEF
Post Reply