Change language

PHP Imagick profileImage () function

About ICC Image Profiles. In color management, ICC Profile - it is a set of data that characterizes a color input or output device or color space in accordance with the standards adopted by the International Color Consortium (ICC). A color space refers to a specific arrangement of colors. Syntax:
bool Imagick::profileImage ($name, $profile)
Parameters: This function takes two parameters as above and described below:
  • $name:this parameter contains the name of the picture profile.
  • $profile:this parameter contains the content of the profile file.
Return value: this function returns true on success.The following program illustrates the Imagick::profileImage() function in PHP:Program :  
// Create an Imagick object $image = new Imagick ( " " );  
// Get the profiles attached to the image $profiles = $image -> getImageProfiles ( ’*’ , false);  
// Check any icc profile added to the image $has_icc_profile = ( array_search ( ’icc’ , $profiles )! == false); if ( $has_icc_profile = == false) { // If the image does not have an ICC profile, add it $icc = file_get_contents ( ’ D: Merawamp www New to icc CMYK.icc’ ); // Use the Imagick::profileimage() function to add // profile to profile added to image // image is a file D: // Merawamp // www //New//to//icc//CMYK.icc $trip1 = $image -> profileImage ( ’icc’ , $icc ); }  
// If the method succeeds, it returns true if ( $trip1 == true) { echo "Profile added to image successfully" ; }  


Best laptop for Sims 4


Best laptop for Zoom


Best laptop for Minecraft


Best laptop for engineering student


Best laptop for development


Best laptop for Cricut Maker


Best laptop for hacking


Best laptop for Machine Learning


Latest questions


psycopg2: insert multiple rows with one query

12 answers


How to convert Nonetype to int or string?

12 answers


How to specify multiple return types using type-hints

12 answers


Javascript Error: IPython is not defined in JupyterLab

12 answers


Python OpenCV | cv2.putText () method

numpy.arctan2 () in Python

Python | os.path.realpath () method

Python OpenCV | () method

Python OpenCV cv2.cvtColor () method

Python - Move item to the end of the list

time.perf_counter () function in Python

Check if one list is a subset of another in Python

Python os.path.join () method