PEF or DNG ?

Smeggypants
Posted 24/03/2011 - 22:07 Link
OK shot two identical shots with K-5. ISO51200

DNG = 31.466Mb
PEF = 29.800Mb

After DNG conversion ....

DNG -> DNG = 20.399Mb
PEF -> DNG = 20.484Mb

Hmmmm. so not as much difference with high ISO stuff
[i]Bodies: 1x K-5IIs, 2x K-5, Sony TX-5, Nokia 808
Lenses: Pentax DA 10-17mm ED(IF) Fish Eye, Pentax DA 14mm f/2.8, Sigma 17-70mm f/2.8, Pentax-A 28mm f/2.8, Sigma 30mm F1.4 EX DC, Pentax-A 50mm f/1.2, Pentax-A 50mm f/1.4, Pentax-FA 50mm f/1.4, Pentax-A 50mm f/1.7, Pentax DA* 50-135mm f/2.8, Sigma 135-400mm APO DG, and more ..
Flash: AF-540FGZ, Vivitar 283
Algernon
Posted 25/03/2011 - 09:58 Link
It's worth looking at compressing PEF and DEF files. I've just tried a 23MB DNG off a GX-20 and it compressed to:

RAR 14.9MB
ZIP 17.6MB
Half Man... Half Pentax ... Half Cucumber

Pentax K-1 + K-5 and some other stuff

Algi
Algernon
Posted 25/03/2011 - 10:49 Link
RAR has a batch like facility to "Put each file in a separate archive" where it uses the filename and adds RAR to the end of each compressed file.

So gb_0236.dng gets compressed into gb_0236.rar
gb_0236.dng can then be deleted and space on the HDD saved.

RAR can also uncompress RAR and ZIP files to a Directory with the
same name as the file so gb_0236.RAR would uncompress into a Directory called gb_0236 if so required, keeping all the later edited files
together in one Directory.
Half Man... Half Pentax ... Half Cucumber

Pentax K-1 + K-5 and some other stuff

Algi
Edited by Algernon: 25/03/2011 - 10:50
Unlocker
Posted 25/03/2011 - 12:15 Link
Personally I would trust Pentax more than Adobe, so PEF over DNG is the preference for me.

With regards to file sizes, why waste effort with 2TB drives @ £60?
simonkit
Posted 25/03/2011 - 12:53 Link
I'm surprised that anyone uses PEF now to be honest, DNG is less processing and more future proof - as unlocker mentions storage costs are now pretty insignificant so why not make life easy

Simon
K10D
Posted 25/03/2011 - 12:54 Link
Unlocker wrote:
Personally I would trust Pentax more than Adobe,
? or ? or even ?

Glad that is only your preference. As for trusting Pentax over Adobe, could you expand that a little or should I wait for Pentaxoshop 1 or Pentacrobat 1?

Best regards
Too far from a shore.
Unlocker
Posted 25/03/2011 - 14:02 Link
K10D wrote:
Unlocker wrote:
Personally I would trust Pentax more than Adobe,
? or ? or even ?

Glad that is only your preference. As for trusting Pentax over Adobe, could you expand that a little or should I wait for Pentaxoshop 1 or Pentacrobat 1?

Best regards
Pentax should know their file format better than Adobe. If they need, or want to change things to support anything new they might do, they can just do it and not wait for Adobe to change things several months later.

It's just a preference based on belief on one part and lack of belief on the other.
George Lazarette
Posted 25/03/2011 - 14:30 Link
simonkit wrote:
I'm surprised that anyone uses PEF now to be honest, DNG is less processing and more future proof - as unlocker mentions storage costs are now pretty insignificant so why not make life easy

Simon
Less processing?

In what way?

G
Keywords: Charming, polite, and generally agreeable.
simonkit
Posted 25/03/2011 - 15:10 Link
George Lazarette wrote:
simonkit wrote:
I'm surprised that anyone uses PEF now to be honest, DNG is less processing and more future proof - as unlocker mentions storage costs are now pretty insignificant so why not make life easy

Simon
Less processing?

In what way?

G
Fair enough, I know normally there's no difference but the post by Smeggy etc about converting PEFs to DNG caught my eye - seems effort for no gain
SkyRider
Posted 25/03/2011 - 15:58 Link
Smeggypants wrote:
I dint understand why DNGs are so large.
Poking around inside a theoretically identical PEF and DNG off the K20D reveals that the DNG contains both a full size JPEG (4672x3104) and a
thumbnail JPEG (640x480) embedded in there in addition to the raw data. The thumbnail has black bars on it to adjust to the 2:3 aspect ratio. Meanwhile the PEF file has raw image data, a 640x480 JPEG and a 160x120 JPEG thumbnail. I'm guessing that your DNG->DNG conversion shrinks the files by losing the full-size JPEG image?

Cheers,
Paul
greynolds999
Posted 25/03/2011 - 17:49 Link
But does that JPEG exist before you view the file on the PC? If you have the Pentax Codec then it might add data to the file to enable it to have a thumbnail.

Just a theory...
Anvh
Posted 25/03/2011 - 19:11 Link
Unlocker wrote:
Pentax should know their file format better than Adobe. If they need, or want to change things to support anything new they might do, they can just do it and not wait for Adobe to change things several months later.
Do you mean that Adobe will actually change their files because Pentax want something?

If read the rules of use off DNG there is a lot that Pentax can add to the file as long as the key things are in it that are needed to create the photo.

DNG is actually more a container then a file, the image information itself is based on the TIFF/EP standard, you can make DNG fully TIFF/EP compatible but you also have the options to embed the PEF file also in the DNG file for example.

ps. aren't most RAW files not based on TIFF so what is the real difference in quality?

greynolds999 wrote:
But does that JPEG exist before you view the file on the PC? If you have the Pentax Codec then it might add data to the file to enable it to have a thumbnail.

Just a theory...
If you look at the RAW photos on your camera you're actually looking at the JPG thumbnail.

I don't think a program on the PC adds data to your RAW file because it creates the photo from the raw data and not from the JPG file and if you save the edits you most of the time end up with a sidecar with DNG the side car is embedded so it might become slightly larger (few KB).

ps. if you change the image settings like contrast, saturation sharpness while you shoot in RAW those are actually applied to the JPG thumbnail. Not sure if you can change the size...
Stefan
Comment Image

K10D, K5
DA* 16-50, DA* 50-135, D-FA 100 Macro, DA 40 Ltd, DA 18-55
AF-540FGZ
Edited by Anvh: 25/03/2011 - 19:13
Smeggypants
Posted 25/03/2011 - 21:35 Link
SkyRider wrote:
Smeggypants wrote:
I dint understand why DNGs are so large.
Poking around inside a theoretically identical PEF and DNG off the K20D reveals that the DNG contains both a full size JPEG (4672x3104) and a
thumbnail JPEG (640x480) embedded in there in addition to the raw data. The thumbnail has black bars on it to adjust to the 2:3 aspect ratio. Meanwhile the PEF file has raw image data, a 640x480 JPEG and a 160x120 JPEG thumbnail. I'm guessing that your DNG->DNG conversion shrinks the files by losing the full-size JPEG image?

Cheers,
Paul
All makes sense.
[i]Bodies: 1x K-5IIs, 2x K-5, Sony TX-5, Nokia 808
Lenses: Pentax DA 10-17mm ED(IF) Fish Eye, Pentax DA 14mm f/2.8, Sigma 17-70mm f/2.8, Pentax-A 28mm f/2.8, Sigma 30mm F1.4 EX DC, Pentax-A 50mm f/1.2, Pentax-A 50mm f/1.4, Pentax-FA 50mm f/1.4, Pentax-A 50mm f/1.7, Pentax DA* 50-135mm f/2.8, Sigma 135-400mm APO DG, and more ..
Flash: AF-540FGZ, Vivitar 283
George Lazarette
Posted 26/03/2011 - 01:37 Link
simonkit wrote:
George Lazarette wrote:
simonkit wrote:
I'm surprised that anyone uses PEF now to be honest, DNG is less processing and more future proof - as unlocker mentions storage costs are now pretty insignificant so why not make life easy

Simon
Less processing?

In what way?

G
Fair enough, I know normally there's no difference but the post by Smeggy etc about converting PEFs to DNG caught my eye - seems effort for no gain
Well, I would agree that there is little point in shooting PEF then converting to DNG, but does anybody do that?

For processing a RAW file, I would expect there to be little difference between PEF and DNG.

G
Keywords: Charming, polite, and generally agreeable.
Smeggypants
Posted 26/03/2011 - 02:14 Link
I've found no difference between PEF and DNG files IQ wise, even with the most microscopic pixel peeping
[i]Bodies: 1x K-5IIs, 2x K-5, Sony TX-5, Nokia 808
Lenses: Pentax DA 10-17mm ED(IF) Fish Eye, Pentax DA 14mm f/2.8, Sigma 17-70mm f/2.8, Pentax-A 28mm f/2.8, Sigma 30mm F1.4 EX DC, Pentax-A 50mm f/1.2, Pentax-A 50mm f/1.4, Pentax-FA 50mm f/1.4, Pentax-A 50mm f/1.7, Pentax DA* 50-135mm f/2.8, Sigma 135-400mm APO DG, and more ..
Flash: AF-540FGZ, Vivitar 283

Add Comment

To leave a comment - Log in to Pentax User or create a new account.



Proudly supporting Pentax User

Samsung Logo Asahi Pentax Logo