Panasonic RW2 MIME Type

Learn what image/x-panasonic-rw2 identifies, how RW2 stores Panasonic Lumix raw photos, which software opens it, and how Poly handles it.

MIME type details for image/x-panasonic-rw2

In active use
MIME typeimage/x-panasonic-rw2
Extensions
.rw2
Magic number49 49 55 00
First standardized2008
Created byPanasonic Corporation
Browser support
Example applicationsAdobe Photoshop, Adobe Lightroom, SILKYPIX Developer Studio
Poly supportYes. Poly recognizes `.rw2` filenames, extracts a suitable embedded JPEG, creates WebP derivatives, and reads available EXIF metadata from the first 1 MiB.
Indexed by PolyYes. RW2 files are searchable by filename, readable EXIF fields, and visual similarity computed from the extracted JPEG. Sensor samples and visible text are not indexed.
Preview in PolyYes. Poly's image viewer displays a WebP rendering made from the best embedded JPEG, not a newly developed image from the raw sensor data.
Poly agentYes. The Poly agent receives a rendered thumbnail up to 1536 pixels and can reason about its visible content, but cannot inspect the raw mosaic or every proprietary tag.

What is image/x-panasonic-rw2?

image/x-panasonic-rw2 identifies an RW2 camera raw file produced by Panasonic Lumix cameras. The .rw2 file preserves sensor measurements and capture metadata so that exposure, white balance, color, noise reduction, and sharpening can be chosen during raw development rather than permanently fixed in the camera.

The subtype is a widely used convention, not an IANA registration. The current IANA image registry has no entry for image/x-panasonic-rw2; the x- prefix signals its unregistered status.1 Freedesktop's shared format research uses this media type for RW2, while older Panasonic .raw files are associated with image/x-panasonic-raw.2

The MIME type describes a family of camera-specific files. Decoder compatibility still depends on the exact camera model. A program that opens an older Lumix RW2 may need an update before it can develop a file from a newly released camera.

How to identify an RW2 file

The ordinary extension is .rw2. Its first four bytes are 49 49 55 00, shown as IIU\0 in ASCII. The leading II indicates little-endian byte order, while the unusual 55 00 value distinguishes RW2 from an ordinary little-endian TIFF header. The full opening sequence commonly continues 08 00 00 00, pointing to the first image-file directory.2

RW2 is structurally related to TIFF, but it uses Panasonic-specific tags and proprietary raw compression. ExifTool documents fields for sensor dimensions, color-filter layout, bit depth, white balance, crop boundaries, camera information, GPS, and embedded JPEG data. It also distinguishes several Panasonic raw compression values rather than treating every RW2 payload as one fixed encoding.3

An extension or four-byte signature is only an initial classification. Software still needs to parse directory offsets, lengths, compression, and the camera-specific sensor layout safely. Renaming a TIFF, JPEG, or DNG file to .rw2 does not turn it into Panasonic raw data.

Where did RW2 come from?

Panasonic introduced the format in its 2008 Lumix generation. On October 30, 2008, the company released LUMIX RAW Codec 1.0 with .rw2 support for the DMC-LX3, DMC-FX150, DMC-FZ28, and DMC-G1.4 RW2 succeeded Panasonic's earlier .raw convention and remains in active use across Lumix compact, Micro Four Thirds, and full-frame cameras.

The format has evolved without becoming a published interchange standard. ExifTool's Panasonic tag reference names RAW 1, RAW 2, RAW 3, and RAW 4 compression values inside this family.3 That evolution is one reason raw applications publish camera-by-camera compatibility lists rather than claiming that an RW2 extension alone guarantees support.

How to open an RW2 file

Do not expect an RW2 to render directly in Chrome, Edge, Firefox, Opera, or Safari. MDN's browser image guide lists the formats browsers commonly decode, and camera-raw formats such as RW2 are not among them.5 Use a raw processor or a supported operating-system photo workflow instead.

Practical choices include:

  • Adobe Camera Raw, Photoshop, and Lightroom. Adobe's support table lists Panasonic models individually and gives the minimum Camera Raw and Lightroom versions for each one.6
  • SILKYPIX Developer Studio. Panasonic's current camera manuals recommend SILKYPIX for processing and editing raw photographs on a computer.7
  • The camera itself. Some Lumix models can process an RW2 in-camera and save a rendered image, although the available controls vary by model.7
Check the camera model, not just .rw2, when troubleshooting. If an editor rejects a valid file from a new camera, update its raw engine or consult its supported-camera list before assuming the file is damaged.

Support in Poly

Poly recognizes .rw2 during filename inference and assigns image/x-panasonic-rw2. Raw formats deliberately take precedence over generic byte sniffing because many of them resemble TIFF at the start.

The indexing pipeline does not demosaic the Panasonic sensor samples. It scans the file for embedded JPEG images, selects the best usable rendering, applies its orientation, and uses that image to:

  • Generate WebP thumbnails for browsing.
  • Create a WebP rendering for the image viewer.
  • Build a visual embedding for similarity and color-oriented search.
  • Supply a rendered thumbnail, up to 1536 pixels on its longest edge, when the Poly agent reads the file.

Poly also examines the first 1 MiB for dimensions and readable EXIF. This can expose common capture metadata, but it is not a complete Panasonic maker-note decoder, and metadata stored later in the file may be missed. Words visible in the preview are not OCR'd, and neither search nor the agent receives the raw color-filter mosaic.

The repository includes a slow integration test using an RW2 sample from a Panasonic S5 II. It verifies a 6000 by 4000 rendered result, at least one thumbnail, and one visual embedding. That test documents the intended pipeline, although real files can still fail if their embedded preview is absent, damaged, unusually large, or encoded in an unsupported way.

An embedded JPEG is the camera's interpretation of the capture. It may have a different crop, tone curve, white balance, noise reduction, or sharpening from a raw editor's final development. Treat Poly's preview as a useful visual representation, not as a reference rendering of every sensor value.

Converting RW2 to DNG, TIFF, or JPEG

Choose the output according to what you need to preserve:

DestinationBest forImportant tradeoff
DNGA more portable raw workflowConversion may omit some proprietary Panasonic metadata
TIFFHigh-quality interchange after developmentThe chosen white balance and rendering are baked into pixels
JPEGSharing, websites, and small filesLossy, usually 8-bit, and much less adjustable
PNGLossless exchange of a rendered imageLarge for photographs and no longer raw

Adobe DNG Converter converts supported camera-specific raw files into DNG and can embed the original raw file. Adobe cautions that conversion may otherwise retain only the proprietary metadata needed to produce a high-quality image.8 Keeping the untouched RW2 alongside any converted copy is the conservative archival choice.

Exporting TIFF, JPEG, or PNG is different from raw-to-raw conversion. The raw processor must first interpret the sensor mosaic using a camera profile, white balance, lens corrections, and rendering settings. That process creates useful display pixels, but it cannot be reversed to recover the original measurements.

Metadata and privacy

RW2 can carry far more than visible pixels. Panasonic raw tags and linked EXIF directories can include camera model, timestamps, creator and copyright fields, and GPS information.3 An exported JPEG may copy some of those fields, while a DNG conversion may retain or embed much more.

Before sharing an original RW2, inspect its metadata with a trusted raw tool. Removing only the location field from an exported image does not prove that every preview, sidecar, maker note, or embedded original is clean. For public delivery, exporting a fresh JPEG and explicitly controlling which metadata is copied is usually easier to audit.

Is RW2 the same as Panasonic RAW or Leica RWL?

No, although the formats are closely related. Panasonic used .raw before .rw2; RW2 is the newer convention and has a different header. Leica .rwl files can share much of the RW2 structure, but the extension and camera metadata identify a different vendor workflow.2

Do not change extensions to move between them. A raw decoder selects camera profiles and proprietary rules from both the container and the model metadata. Use a converter that explicitly supports the originating camera.

Footnotes

  1. Internet Assigned Numbers Authority. Media Types Registry.
  2. libopenraw. Panasonic RAW and RW2. 2 3
  3. ExifTool. PanasonicRaw Tags. 2 3
  4. Panasonic. LUMIX RAW Codec Software Download.
  5. MDN Web Docs. Image File Type and Format Guide.
  6. Adobe. Cameras Supported by Camera Raw.
  7. Panasonic. DC-S5 Owner's Manual. 2
  8. Adobe. Adobe Digital Negative Converter.
© Poly Corp. 2026