• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How do I delete the jpeg from raw+jpeg imported images?

Community Beginner ,
Sep 18, 2012 Sep 18, 2012

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!

Views

51.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 23, 2012 Sep 23, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 23, 2012 Sep 23, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 22, 2012 Dec 22, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 29, 2012 Dec 29, 2012

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 18, 2018 Jul 18, 2018

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 28, 2019 Jul 28, 2019

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:

  1. If you've already got photos you would like to separate out, click on Preferences > Tick "Treat JPEG Files next to RAW files as separate photos"
  2. Then right click on the folder you want to work with, and click "Syncronise folder" - it will ask you to reimport your files, click yes.
  3. Now create a filter with the following settings
  4. Attribute > Click on "Date" > Select Raw
  5. Modify the 2nd column to use Rating and select a Rating that's appropriate
  6. Modify the 3rd column to use "Edit" and select "Unedited"
  7. This should now give you all the files in the folder that are RAW, haven't been worked on, and have a high rating.
  8. Save this filter as a preset filter for next time

Hope this helps someone!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 26, 2023 Sep 26, 2023

Copy link to clipboard

Copied

LATEST

this theng is on my cumputer please take it off

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines