0
\$\begingroup\$

Gday

I'm exporting all my CR2 from my Canon cameras as jpegs. It's a mix of 50d, 7d, 6d and 5d4

However, despite unticking the 'resize' option on the batch convert of Canon DPP, the output resolution varies!

Raw files (note the resolution):

enter image description here

Output jpegs:

enter image description here

Setting used to export:

enter image description here

I re-checked the one of the weird files and I see this. Already mismatching. I think Canon did a booboo

enter image description here

What is going on? Why are photos being exported with differing resolution ?! Thank you

NB: Please disregard the weird filename. I have renamed the filed to include a UUID at the front. So it can act as primary key to a database of photos I created to that I can flatten my folder structure so I can batch convert 27000 photos and then push them back to where their original in-camera-taken jpeg was located.

NB2: Problem still occurs in DPP 4.16.11.0, and 4.17.10.0, and in older versions like 4.7.21.0 which shipped with the Canon 5d IV

\$\endgroup\$
4
  • \$\begingroup\$ This could be explained by a correction of a lens distortion. \$\endgroup\$
    – xenoid
    Commented Feb 23, 2023 at 14:12
  • \$\begingroup\$ Open in Photos (Windows program) and check if you have below a gray band. \$\endgroup\$ Commented Feb 23, 2023 at 14:24
  • \$\begingroup\$ I'm pretty sure this general question has come up before in the context of distortion correction changing the dimensions of image files of Micro Four-Thirds cameras, even with in-camera generated JPEGs when using lenses that require automatic lens correction (as many µ4/3 lenses do). \$\endgroup\$
    – Michael C
    Commented Feb 23, 2023 at 15:34
  • \$\begingroup\$ Yep! Once I removed lens distortion correction, which the camera was turning on automatically, the re-exported jpeg was the expected effective pixel size. Thanks everyone. \$\endgroup\$
    – Peter pete
    Commented Feb 24, 2023 at 0:25

3 Answers 3

1
\$\begingroup\$

Image resolution can be smaller, or sometimes even slightly larger, if you do any of the following between importing raw or JPEG files and converting and exporting them using Digital Photo Professional:

  • Use Lens Distortion Correction
  • Use Digital Lens Optimizer
  • Rotate the image by any amount other than exactly 90, 180, or 270 degrees.
  • Use 'Auto Align' to combine multiple images

This is because when you correct for lens distortion or rotate the image the raster has to be refigured and pixels must be interpolated because the pixels in a faster image file are in straight lines parallel to the image edges, not in curved lines or lines not parallel to the images edges.

This is not unique to Canon's Digital Photo Professional. Many other image converting and editing applications behave similarly when doing the same types of manipulations on images.

If you look at the reported size of raw images from your Canon 5D Mark IV in DPP or most other raw conversion apps they will report the image dimensions as 6720x4480, not 6744x4502 as Windows does. Notice that there are 11 "extra" rows of sensels on the top and bottom of the sensor for a total of 22 extra sensels in the short dimension. There are also 12 "extra" sensels at each end of each row for a total of 24 extra sensels in the long dimension.

Windows reports all locations in the rasterized version of raw files, including information from edge sensels. The information from these edge sensels is needed to fully interpolate color for pixels on the edges of output images which represent sensels which are to the interior of the outer edge sensels.

Some of these edge sensels are masked so that they receive no light falling on them. The information from them is used to measure the amount of "dark current" being generated by the sensor's electronics. But most of them are used in the demosaicing process to provide color information for the 6720x4480 sensel locations inside the 11 sensel high and 12 sensel wide edges of the rectangular sensor. The best demosaicing algorithms do not use simple "nearest neighbor" interpolation, but go out several rows in each direction to calculate assigned color values to the monochromatic brightness detected by each sensel.

\$\endgroup\$
1
  • \$\begingroup\$ Yep! Once I removed lens distortion correction, which the camera was turning on automatically, the re-exported jpeg was the expected effective pixel size. Thanks everyone. \$\endgroup\$
    – Peter pete
    Commented Feb 24, 2023 at 0:25
1
\$\begingroup\$

The only thing that makes any sense IMO is if you have lens corrections enabled. That could add pixels to an image to prevent clipping as it warps the edges/corners. But I have no experience with DPP...

\$\endgroup\$
1
  • \$\begingroup\$ Yep! Once I removed lens distortion correction, which the camera was turning on automatically, the re-exported jpeg was the expected effective pixel size. Thanks everyone. \$\endgroup\$
    – Peter pete
    Commented Feb 24, 2023 at 0:25
0
\$\begingroup\$

For me the result dimensions (of JPEG) are perfectly fine. For example by specifications 5D Mark IV have 6720x4480.

What you see for RAW files are probably total sensor pixels. And the JPEG have effective sensor pixels. For reference see Image sensopart of official Canon documentation.

Here you can find very good explanation about total pixels vs. effective pixels

\$\endgroup\$
8
  • \$\begingroup\$ Thanks for replying. Does that mean that for the second picture, DPP thought it was okay to produce an image that included some of the non-effective pixels? wow. so sometimes it can produce images with the surprise pixels, and sometimes not. Fascinating \$\endgroup\$
    – Peter pete
    Commented Feb 23, 2023 at 12:28
  • \$\begingroup\$ @Peterpete, for me second looks like an error in DPP \$\endgroup\$ Commented Feb 23, 2023 at 13:29
  • \$\begingroup\$ But the 5D file was output as a 6720x4498 jpeg... that's not right. \$\endgroup\$ Commented Feb 23, 2023 at 14:11
  • \$\begingroup\$ It's not uncommon at all to get "extra" pixels when correcting for distortion or rotating the image by amounts other than 90, 180, and 270 degrees. The entire image has to be interpolated. \$\endgroup\$
    – Michael C
    Commented Feb 23, 2023 at 14:51
  • 1
    \$\begingroup\$ Yep! Once I removed lens distortion correction, which the camera was turning on automatically, the re-exported jpeg was the expected effective pixel size. Thanks everyone. \$\endgroup\$
    – Peter pete
    Commented Feb 24, 2023 at 0:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.