PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, September 19, 2022

[FIXED] How to identify if an image have an embed sRGB icc profile?

 September 19, 2022     color-management, color-profile, image, imagemagick, imagick     No comments   

Issue

I would like to remove from my images their sRGB profile if they have one. the problem i don't know how to identify that an image have a sRGB profile. What the good way to do ?


Solution

In Imagemagick, use

convert image.suffix -format "%[profiles]\n" info:

or

convert image.suffix -format "%[profile:icc]\n" info:

unless your Imagemagick version is ancient.

For example:

convert logo.jpg  -format "%[profiles]\n" info:
icc


convert logo.jpg  -format "%[profile:icc]\n" info:
sRGB built-in


Answered By - fmw42
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing