.QMG

QMG File

Qmage Image File
Ask a question
QUICK ANSWER

A QMG file is a Samsung Qmage image used for phone themes, wallpapers, icons, and animated boot or shutdown screens on Samsung Android devices. On a Samsung phone the OS opens it automatically. On a PC there are no official tools - use community scripts from XDA Developers or screenshot the image on the phone.

Developer: Quramsoft (codec); Samsung Electronics (integration) Category: Raster Image Files MIME: image/qmg
OPENS ON Windows Android
Related: .JPG · .PNG · .TIF · .ECW

On this page

19k+ extensions indexed
Last reviewed Jul 16, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the QMG file format?

A .qmg file is a Qmage raster image developed by Quramsoft and integrated into Samsung Android devices beginning around late 2014 (Android 4.4.4 KitKat). The format supports both still images and multi-frame animation, making it suitable for Samsung One UI theme assets such as wallpapers, icons, and UI elements including startup, shutdown, and charging sequences.

The Qmage codec is compiled into Samsung's customized fork of the Android Skia graphics library. This deep OS integration means any Samsung app that processes images - including the MMS message handler - can trigger .qmg decoding without user interaction. In May 2020, Google Project Zero disclosed CVE-2020-8899, a critical zero-click remote code execution vulnerability triggered by sending a malicious .qmg file via MMS. Samsung issued a patch in the May 2020 Android security update.

The format originated on Samsung's bada OS in 2010. Four sub-versions exist: QMv1, QG1.0, QG1.1, and QG2.0 (present in Android 10 Skia builds). All share a 12-byte header beginning with the magic bytes 51 47 01 ("QG" followed by a version byte). Color support includes 24-bit RGB and 32-bit RGBA. Outside Samsung devices, no mainstream image viewer supports .qmg natively; files can sometimes be manually converted to .PNG or .JPG using specialized tools, but broad third-party support is absent.

Security & safety

RISK: MEDIUM

CVE-2020-8899: critical zero-click RCE (CVSS 9.8) in Samsung Qmage codec via MMS, disclosed May 2020, patched in Samsung May 2020 security update. Risk is now patched on updated devices. QMG files from untrusted sources should not be placed on unpatched/older Samsung devices. The vulnerability allowed code execution before the user viewed the malicious MMS.

Format details

in a nutshell
FULL NAMEQmage Image Fileaka Samsung Qmage, QMG image
DEVELOPERQuramsoft (codec); Samsung Electronics (integration)since 2010 (bada OS); integrated into all Samsung Android phones from ~late 2014 (Android 4.4.4)
MIME TYPEimage/qmg
TYPEproprietary lossy/lossless raster image (supports animation)
MAGIC BYTES · FILE SIGNATURE
OFFSET
000102
HEX
514701
ASCII
QG·
First 3 bytes are always 51 47 01 ("QG" + version byte). Basic header is 12 bytes long. Google Project Zero analysis (2020) confirmed ~10% of corpus starts with exactly these bytes; multiple sub-versions exist (QMv1, QG1.0, QG1.1, QG2.0 share header structure).

Programs that open QMG files

Windows1 app
Samsung Theme Designer (bada, legacy) Free Legacy tool for Samsung bada OS theme creation; cannot open Samsung Android QMG files.
Android1 app
Samsung Gallery (built-in) Built-in QMG files are natively decoded by Samsung One UI; Gallery displays them on Samsung devices.

Technical details

deep spec
Magic bytes51 47 01 (ASCII: "QG" + version byte) at offset 0
Header size12 bytes (magic + version + width + height + flags)
Color depth24-bit RGB and 32-bit RGBA (alpha channel supported)
CompressionProprietary lossy (JPEG-like) and lossless (PNG-like) modes
Animation supportYes - multiple frames for startup, shutdown, and charging sequences
Format sub-versionsQMv1, QG1.0, QG1.1, QG2.0
Byte orderLittle-endian
Typical file size2 KB - 500 KB (still image); up to ~2 MB (animation)
Typical dimensions64×64 px to 1080×1920 px (theme UI assets)
ContainerProprietary Quramsoft container; no standard wrapper
PlatformSamsung Android (One UI / TouchWiz); legacy Samsung bada OS
Security noteCVE-2020-8899 - zero-click RCE via MMS, patched in May 2020 Android security update
MIME typeimage/qmg
Released2010 (bada OS); integrated into all Samsung Android phones from ~late 2014 (Android 4.4.4)
Latest versionQG2.0 (codec present in Android 10 Skia builds); QMv1, QG1.0, QG1.1 also documented
Specificationgoogleprojectzero.blogspot.com

QMG conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with QMG files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about QMG files.

Frequently asked questions

How do I open a QMG file on my PC?
There are no official desktop tools. Use community QMG viewer/converter scripts from XDA Developers, or view the file on a Samsung Android phone.
What program creates QMG files?
QMG files are created by Samsung's internal theme toolchain. The legacy Samsung Theme Designer (bada) created them for bada OS. For Android themes, Samsung Theme Studio is used, but output theme packages contain QMG files generated internally.
Can I convert QMG to PNG or JPG?
Yes, via community tools on XDA Developers forums, or by screenshotting on a Samsung device. No official converter exists.
Are QMG files dangerous?
A critical vulnerability (CVE-2020-8899) was patched in May 2020. On fully updated Samsung devices the risk is resolved. Do not process QMG files from unknown sources on old unpatched Samsung phones.
What is the difference between QMG and SMT?
.smt is a Samsung theme package (a ZIP file) that contains QMG images along with other theme assets. QMG is the individual image format inside the package.

References

1Google Project Zero - MMS Exploit Part 1: Introduction to the Samsung Qmage Codecgoogleprojectzero.blogspot.com
2XDA Forums - How can we extract QMG filesxdaforums.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.MDMarkdown Document
4.RPMSGRestricted Permission Message
5.PARTPartial Download File
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

Related extensions

.JPGJPEG Image
.PNGPortable Network Graphics
.TIFTagged Image File Format
.ECWEnhanced Compression Wavelet (ECW) image
.AVIFAV1 Image File Format (AVIF)
.JP2JPEG 2000 Image (ISO/IEC 15444-1)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z