exif-js / exif-js

JavaScript library for reading EXIF image metadata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get image ICC profile information

julin69 opened this issue · comments

Hello, I want to get image file ICC information,how to do?
Thanks very much!

I want to know if the image embed ICC profile.

with Imagick: https://www.php.net/manual/en/imagick.profileimage.php

$image = new Imagick("CMYK_image.jpg"); // load image
$profiles = $image->getImageProfiles('*', false); // get profiles
$has_icc_profile = (array_search('icc', $profiles) !== false); // we're interested if ICC profile(s) exist

if ($has_icc_profile === false) {
}

Can i use exif-js to get icc profile?

I want to use javascript

exif-js does not support ICC. This project has been dead for some years and won't be updated anymore. You can instead use e.g. ExifReader: https://github.com/mattiasw/ExifReader
I am the creator of that library and it supports ICC profiles. I have maintained it for many years and will continue to do that.

Ok,thanks for your reply.