Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

beerseagulls

macrumors 6502a
Original poster
Aug 18, 2021
852
669
go my mother the iPhone 14 Pro last November and left camera in RAW mode until today.(didn't realize it) There are currently 2000+ photos, all in RAW format and taking up a lot of space. Yes, many(80%?) are cat pictures. :(


What can I do to reduce/convert all those photos to JPG? (not one by one, but all 2000+ at once, maybe?)

Thanks!
 
Last edited by a moderator:
  • Like
Reactions: rm5
You could try to transfer them to a Mac, and then use an image converter (or just Preview) to convert them all to JPG!
 
Use(google) "Raw to HEIC shortcut" - is just a number of orders that loads into your native shortcut app, goes into photos to search all raws and converts it to regular heic iphone format. All open source/code and native app - no harm.

Here is the link from Vadim's twitter page from MaxTech: Link.
Disclaimer: i just tried to find the most legit link, however I do not claim that it is safe and i never tested it myself(don't have iphone that shoots raw). Use at your own risk.

Twitter page with instructions: Link.
 
  • Like
Reactions: rm5
You can create&use this simple ShortCut to convert the RAWs to JPEG and - if confirmed - delete the RAWs afterwards:

IMG_1516.jpeg


EDIT: please change HEIF to JPEG in the Convert-step above. HEIF images will be smaller and/or of higher quality for the same size compared to JPEG.
 
You can create&use this simple ShortCut to convert the RAWs to JPEG and - if confirmed - delete the RAWs afterwards:

View attachment 2168591

EDIT: please change HEIF to JPEG in the Convert-step above. HEIF images will be smaller and/or of higher quality for the same size compared to JPEG.
Is there a version of this shortcut where I can manually select the raw photos to convert?
 
Is there a version of this shortcut where I can manually select the raw photos to convert?
just start your Shortcut with Select Photos - activate “ Select Multiple” - add the Convert part, save to e.g. “Recent”, then Delete the “originals”.
 
Can anyone help. I have a few shortcuts that allow me to resize images. If I use a JPEG it works fine, but if I use a RAW file nothing happed, ie it doesn't offer me the share sheet, grrrrrr. Any thoughts?
 

Attachments

  • Screenshot 2023-07-19 at 16.21.05.png
    Screenshot 2023-07-19 at 16.21.05.png
    261.8 KB · Views: 154
Can anyone help. I have a few shortcuts that allow me to resize images. If I use a JPEG it works fine, but if I use a RAW file nothing happed, ie it doesn't offer me the share sheet, grrrrrr. Any thoughts?
To understand why you can't do this, it's helpful to understand how RAW works.

A RAW doesn't actually contain colored pixels, it's a single channel ("gray scale") image representing alternating red blue and green pixels called a Bayer pattern. To actually get the "actual" pixels, you have to extrapolate from each of the pixels neighbors using a complex algorithm called de-bayering.

To “down-sample” a RAW image without first de-bayering, the only solution is to down-sample by a integer factor in each dimension by deleting red/green/blue triplets. This means the image size can shrink only by factors of 4,9, 16 etc. Some cameras can produce directly raw files in different sizes, e.g. from Canon, and additionally there are RAW formats which compress their data (e.g. Canon M- and S-RAW which dump half or a three quarters of the sensors pixels).

Apple does not offer such sensor data dumping/down sampling in their image workflows AFAIK. What for? You dump part of the RAW anyway, so why not choose a scaled, lossless, compressed format with high color depth as output for your shortcut?

EDIT: just realized that I might misunderstand your question - do you want to resize a RAW and save it again as RAW, or can’t you resize and convert the DNGs you take on your iPhone to e.g. JPEG? Which version of iOS/iPadOS?
 
Last edited:
If you have a Mac and can see those photos in Photos, you can just select them, batch export them to jpeg and then import them back in.
 
  • Like
Reactions: rm5
@SnrDiggan try to change the parameter for the input at the beginning of your shortcut - select not only Images, but Media and Files too. Then try a run with your DNGs.

IMG_2647.jpeg
 
Last edited:
  • Like
Reactions: NoBoMac
Raw photos can be easily converted to jpeg, but the quality will not be good. Raw photos need to be processed first to be good and watchable. But for cat pics, probably ok.
 
Raw photos need to be processed first to be good and watchable.
And I wonder if this might be the problem with Apple's ProRaw files (seems that is what OP is trying to handle: "RAW (DNG) photo taken on an iPhone from within the Apple camera app "), as from my understanding, it's RAW plus extra stuff added. And since extra stuff, it's not as simple as "open this file". Maybe.

Maybe Shortcuts or iOS in general does not have baked in a native mode for ProRAW? All of Apple's documentation just goes on about using Photos to handle them or "apps that support ProRAW". So kinda reads like Photos is about the only route.

And +1 for what @Slartibart mentioned. And if that does not work, change the receive to be "all" types.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.