ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Extract Jpeg from NEF RAW file
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pDavid

12 Posts

Posted - Jan 03 2013 :  16:14:47  Show Profile  Reply
Hi,

how quickly extract the jpeg from raw file (nef, cr2, etc) ?

EnableLoadEXIFThumbnails is the only way ?

Thankyou
David

xequte

38290 Posts

Posted - Jan 04 2013 :  01:07:45  Show Profile  Reply
Hi

You can extract the JPEG image from some RAw formats as follows:

DNG:
ImageEnView1.IO.Params.TIFF_SubIndex:=1;
ImageEnView1.IO.LoadFromFileTIFF('input.dng');

CR2:
ImageEnView1.IO.Params.ImageIndex:=0;
ImageEnView1.IO.LoadFromFileTIFF('input.cr2');

NEF:
ImageEnView1.IO.Params.ImageIndex:=1;
ImageEnView1.IO.LoadFromFileTIFF('input.nef');

CRW:
ImageEnView1.IO.LoadJpegFromFileCRW('input.crw');


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

pDavid

12 Posts

Posted - Jan 04 2013 :  13:30:35  Show Profile  Reply
How Can i apply this param

/* IO.Params.JPEG_Scale := ioJPEG_AUTOCALC;

to the jpeg extracted from TIFF ?

Because it so slow when i try to load.

i add this param

/* IO.Params.RAW_HalfSize := True

but the result is the same !

Go to Top of Page

fab

1310 Posts

Posted - Jan 08 2013 :  07:59:44  Show Profile  Reply
With ioJPEG_AUTOCALC you should also set the desired size:

ImageEnView1.IO.Params.Width:=100;
ImageEnView1.IO.Params.Height:=100;
ImageEnView1.IO.Params.JPEG_Scale:=ioJPEG_AUTOCALC;
ImageEnView1.IO.LoadFromFile('....');
Go to Top of Page

pDavid

12 Posts

Posted - Jan 11 2013 :  15:25:25  Show Profile  Reply
//With ioJPEG_AUTOCALC you should also set the desired size

I already use it for jpeg files but it doesn't work for jpeg extracted from raw files.

How Picasa can extract and display so fast the nef and cr2 files ? (when navigating with mousewheel)
Go to Top of Page

fab

1310 Posts

Posted - Jan 16 2013 :  10:34:16  Show Profile  Reply
Actually ioJPEG_AUTOCALC works only for jpeg and tiff.
For other RAWs it is only possible to extract the thumbnail:

imageenview1.IO.Params.GetThumbnail := true;
imageenview1.io.LoadFromFile('image.NEF');
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: