Windows script
Canon PowerShot SX620 HS Photo Converter
Put any photo onto your Canon PowerShot SX620 HS's SD card and have it play back without errors. No extra software needed.
Right-click the zip and choose Extract All first. It runs from the folder it makes; it won't run from inside the zip.
Or get the files one by one (keep them in the same folder): Convert_for_SX620_HS.bat (180 B) · Convert_for_SX620_HS.ps1 (34 KB)
This free Windows script takes photos from anywhere (another camera, a phone, or a photo editing program like Lightroom) and converts them into files the Canon PowerShot SX620 HS will show. It takes care of the size, the rotation, the little preview picture and all the hidden Canon information the camera checks for. Drop your photos in, double-click, done.
Why it’s needed: copy an ordinary photo onto the camera’s SD card and the camera says “Unidentified Image” or “Cannot play back image”. Canon’s compact cameras only show JPEGs that look exactly like the ones they make themselves, down to hidden details inside the file.
How to use it
- Download the zip above, right-click it and choose Extract All. You get a folder with two files. They have to stay together in the same folder.
- Double-click
Convert_for_SX620_HS.bat.- If Windows asks whether to run it, click Run. If a blue “Windows protected your PC” box comes up, click More info, then Run anyway.
- The first time, it makes an
inputfolder and anoutputfolder next to itself.
- Copy your photos into the
inputfolder (JPG, PNG, BMP, TIFF or GIF). - Double-click
Convert_for_SX620_HS.batagain. Wait for Done!, then press any key to close the window. - Open the
outputfolder. Your photos are there asIMG_0001.JPG,IMG_0002.JPGand so on. The originals ininputaren’t touched. - Copy the
IMG_XXXX.JPGfiles into theDCIM\100CANONfolder on the camera’s SD card.
Running it again later is fine: new files carry on from the highest number already in output, so nothing gets overwritten.
What you need
| Windows | Windows 10 or 11. (Windows 7 and 8.1 work too if they have PowerShell 5.1, from Microsoft’s free Windows Management Framework 5.1.) |
| Photos | JPG, JPEG, PNG, BMP, TIF, TIFF, GIF |
| Install | Nothing. No admin rights, no internet connection, no other programs. |
What it won’t do
- It never changes or deletes your original photos.
- It doesn’t upload anything or connect to the internet at all.
- It doesn’t install anything or change any Windows settings.
- It’s only for the SX620 HS. Other Canon models need their own version (see below).
What about the SX740 HS?
The SX740 HS has the same maximum picture size (5184 × 3888) and the same IMG_XXXX.JPG in DCIM\100CANON layout, so the size, file name and JPEG format all fit. But the hidden Canon information inside each converted photo says it was taken by an SX620 HS, and whether the SX740 HS accepts that hasn’t been tried. If you try it, tell me how it went. To be sure, it needs its own version, made from a real photo taken by an SX740 HS.
What the launcher looks like
The .bat file only opens the PowerShell script and keeps the window open at the end so you can read it:
@echo off
setlocal
title Canon PowerShot SX620 HS Photo Converter
powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%~dp0Convert_for_SX620_HS.ps1"
echo.
pause
All the work is in Convert_for_SX620_HS.ps1, a plain text file you can open in Notepad and read. It only uses what’s built into Windows (PowerShell and .NET’s picture tools): no ExifTool, Python, ImageMagick or ffmpeg.
How it works (for the curious)
Why the camera says “Unidentified Image”
Before it shows a JPEG, the camera’s firmware checks that:
- the file has Canon’s MakerNotes (a block of 32 hidden tables: camera settings, shot info, focus points, aspect ratio, face detection and more);
- the camera model in it is the SX620 HS (
CanonModelID0x04060000, image typeIMG:PowerShot SX620 HS JPEG); - there’s a 160 × 120 preview picture (the EXIF thumbnail), saved as a plain baseline JPEG with no JFIF header;
- the photo itself is a baseline JPEG. Progressive JPEGs, which many programs save, are refused;
- the file is named
IMG_XXXX.JPG(capital.JPG) and is inDCIM\100CANON.
What it does with each photo
- Reads it without changing it.
- Straightens it: a photo that’s only marked as sideways or upside down gets really turned, so it shows the right way up.
- Shrinks it if it’s too big for the camera’s 5184 × 3888, keeping its shape. A 6000 × 4000 photo becomes 5184 × 3456; a tall 3132 × 4390 becomes 2774 × 3888. Smaller photos keep their size.
- Keeps the original picture data when it can: if the photo is already a baseline JPEG in normal colors (sRGB), the right size and the right way up, the picture itself is copied as is, with no quality lost. Only the extra blocks other programs add (JFIF, Photoshop/IPTC, color profile, XMP) are left out.
- Otherwise saves it fresh as a baseline JPEG at 95% quality, using the JPEG saver built into Windows. That’s for photos that were resized or turned, PNG/BMP/TIFF/GIF files, and photos in other color spaces.
- Makes the 160 × 120 preview (fitted on black, 85% quality, no JFIF header), the way the camera makes its own.
- Adds the SX620 HS’s hidden information. The script carries a 9,632-byte copy of this block from a real SX620 HS photo, with personal details removed. For each photo it fills in the size (in all 6 places the camera keeps it), the date taken (from the original photo, or else the file’s date), today’s date as the edit date, a Canon file number to match the name (
100-XXXX), a new unique ID, and where the preview picture is. - Saves it as the next free
IMG_XXXX.JPGinoutputand prints one line about it, in color. A photo that can’t be converted is shown in red and skipped; the rest carry on.
A real SX620 HS photo vs. a Lightroom export
These are what the camera makes and what Lightroom makes, compared byte by byte:
| SX620 HS | Lightroom export | |
|---|---|---|
| File type | MPO: the photo + a 1440 × 1080 second preview | Ordinary JPEG |
| EXIF byte order | Little-endian (II) |
Big-endian (MM) |
| Blocks in the file | Exif, XMP, MPF | JFIF, Exif, Photoshop/IPTC, ICC color profile, XMP |
| Color sampling | YCbCr 4:2:2 | YCbCr 4:2:0 |
| EXIF preview picture | 160 × 120, about 3 KB | 85 × 119, about 1.6 KB |
| Canon MakerNotes | Yes (8,106 bytes, 32 tables) | Removed by Lightroom |
| Canon file number | Yes (like 886-8332) |
No |
| EXIF version | 0230 | 0231 |
| Resolution | 180 dpi | 94 dots per cm |
Why 5184 × 3888 is the limit, even for tall photos
The camera’s sensor is 5184 × 3888, wide. When you hold the camera upright, it still saves the photo wide and only marks it “turn this when showing it”. So its own files are never taller than 3888 pixels, and “no wider than 5184 and no taller than 3888” is the safe rule for every photo.
How it was made
By taking apart two real files with ExifTool and a JPEG marker reader: a photo straight from an SX620 HS, and a Canon EOS 5D Mark IV photo exported from Lightroom Classic.
Not working, or have an idea for it? Tell me.
Version historylatest v1.0 · Nov 30, 2026
- v1.0 · Nov 30, 2026First version.
