Embedding an ICC Profile in a JPEG 2000 image

Started by frankfert, August 25, 2021, 05:34:15 AM

Previous topic - Next topic

frankfert

I'm trying to embed an ICC Profile into a JP2 file. 

A few command line tools will convert TIFFs to JP2 however they don't seem to embed the ICC profile.  Previously, I've used Photoshop to convert the pics one-by-one.  Very boring process and keen to script it.

I understand Exiftool does not support writing ICC into JP2 files (per the supported file types list on the home page).

Does anyone have any suggestions how to embed an ICC profile into JP2 files?

Hubert

Not an ExifTool answer, and only a macOS answer, but...

cd into the directory containing the .jp2 files and use sips1:

sips -e /path/to/profiles/profile_name.icc *.jp2

1 Scriptable Image Processing System, not SIP, which is System Integrity Protection.

frankfert

Any ideas for a Windows or Linux solution?

Unfortunately I don't use a Mac

Phil Harvey

ExifTool 12.35 (just released) has the ability to write an ICC_Profile to a JPEG 2000 image.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).