Skip to main content
johnrellis
Legend
July 15, 2018
解決済み

Lightroom: Fails to import some valid scanned TIFFs created by Mac Image Capture

When LR tries to import some scanned TIFFs created by Mac Image Capture, the import fails with "The file uses an unsupported compression algorithm".  The problem is that LR doesn't implement the representation used by Image Capture with these TIFFs: JPEG compression, 4 samples per pixel (RGB + Alpha), and PhotometricInterpretation = RGB.

For some reason, Image Capture uses this representation on crops with non-zero angles, such as those created by the very useful feature Auto Selection: Detect Separate Items, which identifies and separates multiple photos being scanned.

Here's such a TIFF: 
https://www.dropbox.com/s/ks57ijejfuvjcbp/Image-Capture-Angle.2018.07.14.tiff?dl=0

Many programs correctly read this TIFF: Preview (Mac), Gimp (Mac), Photos (Mac), Safari (Mac), Photos (Windows 10), Paint (Windows 10).

Unfortunately, there's a longstanding bug in Photoshop that incorrectly reads this representation: 
https://feedback.photoshop.com/photoshop_family/topics/scans-not-working-in-photoshop

There are (at least) two workarounds:

1. In Image Capture, save the scans with non-zero angles as JPEGs rather than TIFFs.  These TIFFs use JPEG compression anyway, so there is no advantage to using TIFF over JPEG.

2. Open the TIFF in another program and save it with a different compression algorithm (e.g. none or LZW). 

Unfortunately, you can't use Preview to export as a TIFF, since it seems to have a bug in its Export / Save that ignores the setting Compression = None.  But since the TIFF is already using JPEG compression, simply use Preview to export it as a JPEG, and in this case you won't suffer any additional loss in quality.

Tested with LR 7.4 / Macos 10.13.5. But this problem has been in LR for years, based on reports in the forums.
このトピックへの返信は締め切られました。
解決に役立った回答 simonsaith
From the bug report, our developer reported that the problematic TIFF files are compressed with lossy JPEG compression. This type of lossy TIFF compression is not supported by Lightroom/ACR. The bug is marked closed/won't fix.

One workaround is to re-save the lossy compressed TIFF from Photoshop, and then the result can be imported into Lr.

返信数 33

Participant
October 2, 2023

I am having this trouble with MAC ventura.  "Unsupported compression alogorithm".  

 

 

johnrellis
johnrellis作成者
Legend
November 15, 2020

We've all been trained to avoid JPEG in favor of lessless formats. I use lossless TIFFs for the initial scans in my project of scanning tens of thousands of archival slides. 

But these days, with higher resolution images and the high-quality JPEG compression setting, it can be very hard to distinguish the difference visually between lossless TIFF and high-quality JPEG, even after multiple edits.  I save the final versions of my slide scans as high-quality JPEGs, saving tons of disk space and upload time (locally and in the cloud services where I publish them).

jeffs13823009
Participant
November 15, 2020

John, thanks again for your time and expertise.  I just now loaded exiftool and learning how to use it.  I see the results you noted - JPEG compression on everything I've been scanning using Image Capture on two different scanners using the TIFF setting.  This gives me a lot to play with.  Maybe I can alter my workflow enough to create lossless TIFFs, but I appreciate your insight into the LZW vs JPEG question.  Not sure why I'm being so picky, it's probably not worth the extra effort and JPEG will be more than adequate for these random snapshots.  Thanks much, John, you've been very helpful!

johnrellis
johnrellis作成者
Legend
November 15, 2020

"I'm bugged by the idea of using JPEG as I'm trying to archive my whole library of prints in the most enduring format I can."

JPEG format will be with us practically forever -- it's the most commonly used industry-standard file format.

TIFF with JPEG compression is also a common industry standard, and there will always be tools to read it. But as we saw with Photoshop (now fixed) and LR (not yet fixed), perhaps not as many tools.

So for the most enduring archival format from Image Capture with Auto Selection, I recommend JPEG, which will give exactly the same image quality as TIFF with JPEG compression.

johnrellis
johnrellis作成者
Legend
November 15, 2020

Unfortunately, the easiest way is to try importing the TIFF into LR -- if you see "unsupported compression algorithm":

then you know the file was compressed with something LR can't handle.

If you're comfortable with command-line tools, you can use the free Exiftool utility:

$ exiftool -compression Scan.tiff 
Compression                     : JPEG
jeffs13823009
Participant
November 15, 2020

Hi John, thanks for the response. I am using the 'Auto Selection: Detect Separate Items' setting.  I'm bugged by the idea of using JPEG as I'm trying to archive my whole library of prints in the most enduring format I can.  Is there a practical way to tell if a photo has been scanned using JPEG compression as opposed to LZW when you're using the TIFF setting? 

johnrellis
johnrellis作成者
Legend
November 13, 2020

Are you using Mac Image Capture to scan images, with Auto Selection: Detect Separate Items?  If so, use the workaround described above: Scan as JPEG, not as a TIFF. There won't be any loss of quality, since internally the TIFFs created by Image Capture are using JPEG compression anyway.

jeffs13823009
Participant
November 13, 2020

Hey all, I realize this is an old thread but I'm here to report that it's still a bug.  I tried your trick of setting 0 angle, Robandmars80, but LR 10.0 still rejects it.  File sizes are not small, typically over 1 MB.  Still hoping to find a workaround that allows me to continue scanning to TIFF and import into LR without a conversion stage.

If I simply rename the file as .tif in the Finder, LR does not accept it.  When I bring it into XnConvert and save it as TIFF with no other modifications, the file extension changes to .tif and LR accepts it just fine.  

Thanks all!

Inspiring
January 30, 2020
I have found a workaround to this with Detect Separate Items activated.
The issue is in Image Capture, not Adobe products. I also have difficulty opening these files in Nikon software. 

In Image Capture after doing an Overview scan, click on each image individually. You may have to click off the images initially to be able to click on individual images. Check that the angle for each image is 0. If it isn't 0 it will compress the scan so just change it to 0 manually. Then scan. I have decided to do any cropping or rotating once the image has been scanned. I'm also just scanning two photos at a time. The max I can fit on my scanner is three photos and with two I can use the edge of the scanner to get them as straight as possible.

I have Finder open and watch the file size as the images come in. If the file size is very small compared to others, delete and rescan using the above strategy.

It sounds fiddly but I am up to a thousand scanned photos so far and find this is easy.  I did purchase scanning software but I find that Image Capture is much more user friendly. I'm separating out some of the extra special photos so that later I can scan them with the higher quality software if I find I need it.

I hope this helps.
Inspiring
January 6, 2020
I think I agree John. I might just save scanning as uncompressed TIFFs for the very special photos that I might want to work on in the future.

Interestingly, I just saved one of my Image Capture created TIFFs as a JPEG in Preview and the file size increased from 15MB to 65MB. Very strange.

Thanks for your help.