Exporting from Preview, JPG vs JPEG creates corrupt Windows files

Im having an issue where if i select a single .HEIC image and export if from Preview I get a file with the extension.jpg which opens fine on a Windows machine. BUT, if i select more than one image and export them they are all .jpeg which doesn't open on a Windows machine (Sorry, Photos can't open this file because the format is currently unsupported, or the file is corrupted).


Why would Apple change the extension from .jpg to .jpeg for a batch export?

Mac mini, macOS 15.3

Posted on Mar 3, 2025 4:40 PM

Reply
15 replies
Sort By: 

Mar 4, 2025 1:06 PM in response to clarkysdonga

clarkysdonga wrote:

BUT, if i select more than one image and export them they are all .jpeg which doesn't open on a Windows machine (Sorry, Photos can't open this file because the format is currently unsupported, or the file is corrupted).

You might have stumbled on an old Preview bug when exporting many images as another codec:


1. Open many images (.heic, for example) in Preview.app.

2. Edit > Select All.

3. File > Export Selected Images... > Show Options > Select some other Format (JPEG, for example).


Result: All files have .jpeg suffix and the very 1st exported file(s) might really be .jpeg but the rest are really .heic (HEIF) if you inspect them with Preview > Tools > Show Inspector > General Info.


Reply

Mar 4, 2025 5:22 AM in response to clarkysdonga

Older versions of macOS used to export just .jpg from Preview, but in the last few releases of macOS, this has changed to .jpeg. Since no Apple-badged employees participate here, there will be no official explanation for this format name change. It may simply be one Apple developer's whim and no one caught it.


It is not limited to Preview, as I have a Shortcut that splits PDF pages into .jpeg images. This has been the case with Ventura, Sonoma, and Sequoia.


Reply

Mar 4, 2025 11:44 AM in response to clarkysdonga

clarkysdonga wrote:

Why would Apple change the extension from .jpg to .jpeg for a batch export?

We have no idea why. But they did. You can easily change the extension from jpeg to jpg with Name Mangler . It's a very powerful renaming app.



You can also quickly convert the heic files to jpeg files with the HEIC Converter app from the App Store. Just drop a folder of heic images on the app and it's done.

Reply

Mar 3, 2025 7:36 PM in response to clarkysdonga

clarkysdonga wrote:

Im having an issue where if i select a single .HEIC image and export if from Preview I get a file with the extension.jpg which opens fine on a Windows machine. BUT, if i select more than one image and export them they are all .jpeg which doesn't open on a Windows machine (Sorry, Photos can't open this file because the format is currently unsupported, or the file is corrupted).

Why would Apple change the extension from .jpg to .jpeg for a batch export?

I doubt it, but you’d have to ask them.

You can change it. Not sure why Windows would have a problem with a standard file extension.

Reply

Mar 4, 2025 1:36 AM in response to clarkysdonga

clarkysdonga wrote:

BUT, if i select more than one image and export them they are all .jpeg which doesn't open on a Windows machine (Sorry, Photos can't open this file because the format is currently unsupported, or the file is corrupted).

They must have been corrupted somehow. I batch exported a dozen images from Preview to an ExFAT formatted flash drive as .jpegs, plugged the drive into my Asus Windows laptop and it had no problem opening all of them.

Why would Apple change the extension from .jpg to .jpeg for a batch export?

Did it change the .heic extension to .jpeg?

Reply

Mar 4, 2025 7:18 AM in response to clarkysdonga

clarkysdonga wrote:

Why would Apple change the extension from .jpg to .jpeg for a batch export?

It's just a bug. There are a few oddball places that use a ".jpeg" extension. The bulk export is just one of those.


After exporting, you can select all of the images in the Finder, control-click or right-click on them, and choose "Rename". Use the "replace text" option and replace "jpeg" with "jpg".


Normally, Finder will complain if you try to change a file extension like this. But in this case, it seems to know that "jpeg" and "jpg" are the same, so it just does it.

Reply

Mar 4, 2025 2:39 PM in response to Matti Haveri

Matt Haveri wrote:

You might have stumbled on an old Preview bug when exporting many images as another codec:




This is close to what is happening I think. I have emailed Apple the video of the problem and this tip you showed me here, huge thanks. Will keep everyone updated. They need to fix this asap. Also discovered that screen recording using Quicktime Player stops the conversion of the corrupted files, so maybe a graphic memory issue?

Reply

Mar 4, 2025 5:05 PM in response to clarkysdonga

clarkysdonga wrote:

Will keep everyone updated. They need to fix this asap.

LOL! The sun will burn out before Apple fixes a bug like this. Just rename the files. Takes 3 seconds.


If this is something you do 15 times every day, maybe convert them using the "sips" command line tool.


sips -s format jpeg -o new  *.heic


where "new" is a directory

Reply

Exporting from Preview, JPG vs JPEG creates corrupt Windows files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.