Converting CR2 to PNG: what to know first
You want to convert a Canon CR2 RAW file to PNG. It can be done, but in almost every case it is not what you actually need. We measured both routes on real files: PNG produces an image fourteen times heavier, sixty times slower to generate, and stripped of all metadata. Here are the numbers, followed by the solution that really does the job.
The short answer
For a photograph, convert your CR2 to JPG. You get the same image, at full resolution, with the date taken, GPS coordinates and orientation preserved, in a file fourteen times lighter.
Convert my CR2 files to JPGThe measurements: CR2 to JPG versus CR2 to PNG
Measured in Chrome on the 6000 × 4000 preview extracted from a 27.6 MB CR2 (Canon EOS 2000D).
| Criterion | JPG output | PNG output |
|---|---|---|
| Output file size | 1.73 MB | 24.3 MB (× 14) |
| Conversion time per photo | about 30 ms | about 1.8 s (× 60) |
| EXIF and GPS metadata | kept | lost |
| Photo orientation | kept | lost (image sometimes sideways) |
| Image re-encoding | none, byte-for-byte copy | full decode, then re-encode |
| Transparency | not supported | supported (useless for a photo) |
Why PNG bloats a photo so much
PNG is a lossless compression format. Its algorithm looks for repetition: two identical neighboring pixels cost almost nothing to store. That is remarkably efficient on a screenshot, a logo or a diagram, where large areas are a single color.
A photograph is exactly the opposite case. Sensor noise, grain and sky gradients mean that almost no pixel matches its neighbor. The algorithm has nothing to factor out and gets close to raw storage: 24 million pixels in three 8-bit channels, or 72 MB of data that PNG only manages to bring down to 24.3 MB.
JPG, on the other hand, is designed for continuous-tone images. It takes advantage of the fact that the human eye struggles to see certain fine variations, and reaches 1.73 MB on the same image, with no difference you can see on screen or in print.
The real problem: PNG wipes your metadata
This is the decisive argument, and the one most often overlooked. When a browser converts an image to PNG, it decodes it into pixels and then re-encodes it. Anything that is not a pixel disappears. Reading back the files produced, all that remains in the PNG is the width, the height, the color depth and the interlace type: the fields of its own header.
Gone, on the other hand: the date and time taken, the GPS coordinates, the camera make and model, the lens, the ISO, the aperture, the shutter speed and the orientation. The last one is the most visible: the preview embedded in a CR2 is always stored in landscape, and it is the orientation tag that tells software to rotate it. Without it, all your portrait photos come out sideways.
In practice, a batch of photos converted to PNG can no longer be sorted by date or by place. If you planned to organize them afterwards with the PicOrganizer photo organizer or any other sorting tool, PNG closes that door for good: lost metadata cannot be recovered.
When PNG is the right choice
PNG is not a bad format, it is simply unsuited to photography. It remains the best choice in three situations:
- You need transparency: a cut-out, a logo to place on varying backgrounds. JPG has no alpha channel.
- The image contains text or flat areas: a screenshot, a chart, an interface. JPG creates visible fringes around sharp edges; PNG does not.
- The file will be re-encoded several times: a graphics production chain where each JPG pass would add artifacts.
If you are in one of these cases with a RAW file, the route is simple: first convert the CR2 to JPG with our tool, then convert that JPG to PNG. At each step you will see what you gain and what you lose.
Frequently asked questions
Can you convert a CR2 to PNG?
Technically yes, but the result is poor on the three criteria that matter for a photo: the file is about fourteen times heavier, all EXIF and GPS metadata is lost, and the image has to be re-encoded. For a photograph, JPG is the right output format.
Why is a PNG made from a photo so heavy?
PNG uses lossless compression designed for flat areas of color: screenshots, logos, diagrams, images with a transparent background. A photograph has almost no uniform areas (each pixel differs from its neighbor), so the algorithm has nothing to factor out. On a measured 6000 × 4000 Canon preview, the PNG output weighs 24.3 MB against 1.73 MB for the JPG.
Does PNG keep the EXIF and GPS data?
In practice, no. The PNG specification does define an optional eXIf chunk for EXIF data, but browsers do not write it when converting an image, and support in photo software is uneven. A PNG conversion done in a browser produces a file that keeps only the width, height and color depth: no date taken, no GPS, no orientation, no camera model.
Does PNG give better quality than JPG?
Not in this case. PNG is lossless relative to what it is given to encode, and what it is given here is already the JPEG preview the camera wrote into the CR2. PNG therefore faithfully freezes an image that is already compressed, adding nothing, while making it fourteen times heavier.
When is PNG justified?
When you need transparency, when the image has sharp text or flat areas (a screenshot, a chart, a logo), or when a file must be re-encoded several times in a row without piling up artifacts. None of these cases describes a photograph from a DSLR.
How do I get a PNG anyway?
First convert your CR2 to JPG with our tool, then run that JPG through a regular PNG converter. You stay in control of the result, and you know exactly what you lose at each step.
Convert your CR2 files to JPG, for free
Full resolution, no recompression, with your EXIF and GPS metadata kept. Everything happens in your browser.
Open the CR2 to JPG converterSee also: convert DNG to JPG, convert JPG to PNG or compress an image.