Rubblewebs

THESE CODES ARE PROVIDED FOR AN EXAMPLE OF HOW TO USE IMAGEMAGICK WITH PHP. CARE SHOULD BE TAKEN WHEN ACCEPTING USER INPUT.

I TAKE NO RESPONSABILTY FOR ANY PROBLEMS THAT MAY OCCURE WHEN USING ANY OF THIS CODE.

IT IS UP TO YOU TO SECURE THE CODE AND VALIDATE USER INPUT.

Modify image contrast and colours

Original image on the left ( or top ) and modified Image on the right ( or bottom )

Unmodified image Modified using colorize
    
	 exec("convert House.jpg -fill black -colorize 15% colorize.png");
	
	

More information
Unmodified image Modified using contrast-stretch
    
	exec("convert House.jpg -contrast-stretch 2% stretch.png");
	
	

More information
Unmodified image Modified using level
    
	exec("convert House.jpg -level 5%,95%,0.8 level.png");
	
	

More information
Unmodified image Modified using normalize
    
	exec("convert House.jpg -normalize normalize.png");
	
	

More information
Unmodified image Modified using sigmoidal-contrast
    
	exec("convert House.jpg -sigmoidal-contrast 3,75% sigmoidal.png");
	
	

More information