Copy link to clipboard
Copied
Hi,
Back in the day, I shot lots of images using raw+jpeg and imported them into Lightroom. Now I realize those jpegs add no value and I'd like to recover the disk space that they're collectively occupying.
Is there a good way to:
1. Identify all images in a catalog which have raw+jpeg?
2. Remove just the jpeg for these images?
Thanks!
Copy link to clipboard
Copied
Hmm. I am certain I have seen this Raw+JPG label change, not long after deleting the file externally . It's not doing it for me now - at least, not automatically, with either RAW (panasonic) or PEF (Pentax).
Whether the image reports Raw, or Raw+JPG, is academic for me personally - provided the right thing happens when I filter in LR for "filetype Raw" or whatever.
Odd. Perhaps my recollection is wrong, and I synced (Sank?) the folder last time I paid proper attention to this - for this or some other reason - and that refreshed the filetypes reported.
The main point is, though, that LR itself does not object either way. The actual presence / absence of some invisible JPG is of no real interest or consequence, IMO - apart from the file storage space taken up. Others may differ on that of course - but those people may be more likely to have selected the option to treat these two file versions, as independent "equals" in LR.
Copy link to clipboard
Copied
richardplondon wrote:
In due course, LR will merely update its filetype display - from (e.g.) "PEF+JPG", to (e.g.) "PEF"
I could swear I saw this behavior once too. I remember being surprised, thinking "I didn't do anything to warrant that, did I?" (e.g. no resync of the folder). Not 100% sure now...
PS - It seems Lightroom is very willing to drop the +JPEG, but as far as reaquiring it: not so much.
Copy link to clipboard
Copied
Perhaps someone is helped, although this discussion is old...
Recently at www.lightroomstatistics.com they have posted a report query called "Find RAW + JPG photos. The result of the report can be stored in a CSV file.
Behind the report there is a SQL query. One could also get the same result with querying the database directly.
Further they have a Lightroom plug-in called "Photo list importer". This plug-in reads a CSV file and adds all photos in the list in a collection called "LRS_Photo_List.
Before running the report you should close Lightroom.
The report won't run because Lightroom locks the database.
My advise, create a copy of your catalog and test it first on that. When you are happy go ahead.
DON'T FORGET, ALWAYS MAKE A BACKUP BEFORE RUNNING SUCH REPORTS.
Copy link to clipboard
Copied
If you have a Mac or Linux workstation, the following script should do the trick. It searches a directory tree for Canon (CR2) and Sony (ARW) raw files (tweak however you like), checks for sidecar JPEG files, and deletes them if they exist. After running the script, you then need to synchronize in LR to remove the sidecar file flag from your files.
Apologies if someone else posted a script or solution already. I didn't read the entire thread.
#!/bin/bash
root=~/Pictures
for f in $(find $root -name '*.CR2' -or -name '*.ARW');
do
fname=`echo $f | cut -d\. -f1`
if [ -e $fname.jpg ]
then
rm $fname.jpg
elif [ -e $fname.JPG ]
then
rm $fname.JPG
elif [ -e $fname.jpeg ]
then
rm $fname.jpeg
elif [ -e $fname.JPEG ]
then
rm $fname.JPEG
fi
done
Copy link to clipboard
Copied
The script assumes no spaces in file names. Running this with files (or paths) having spaces will possibly wreck havoc if the words match other files.
Properly using quotes at least with rm commands should avoid this.
Copy link to clipboard
Copied
I've figured it out using only Lightroom (CC - 2019)
My workflow is usually:
Go through the photos of the session, rate some of them in RAW (it's better to have them grouped for this purpose), edit as appropriate, export as JPEG etc. Now I want to delete the other RAW's that I don't feel are necessary to keep (let the stoning begin), so I go through the below process to get them deleted:
Hope this helps someone!
Copy link to clipboard
Copied
this theng is on my cumputer please take it off