bobinindia Posted March 21, 2008 Share Posted March 21, 2008 I am trying to crop an image that has been uploaded. Ideally I could crop it as a perfect circle. Is this possible with php? Link to comment https://forums.phpfreaks.com/topic/97186-cropping-an-image/ Share on other sites More sharing options...
Psycho Posted March 21, 2008 Share Posted March 21, 2008 Tecnically, no. Images are always rectangles. You could probably "fill" the corners with white (or another color) or make then transparent if you are working with a gif. So, what type of file are you working with? Link to comment https://forums.phpfreaks.com/topic/97186-cropping-an-image/#findComment-497306 Share on other sites More sharing options...
bobinindia Posted March 21, 2008 Author Share Posted March 21, 2008 More likely to be working with jpegs as customers willl upload their own family pictures. Any chance with ImageMagick? Link to comment https://forums.phpfreaks.com/topic/97186-cropping-an-image/#findComment-497308 Share on other sites More sharing options...
keeB Posted March 21, 2008 Share Posted March 21, 2008 Why a circle? Never seen this before? Link to comment https://forums.phpfreaks.com/topic/97186-cropping-an-image/#findComment-497321 Share on other sites More sharing options...
jkewlo Posted March 21, 2008 Share Posted March 21, 2008 you should use .png portable network graphics. allows opacity small file. as well Link to comment https://forums.phpfreaks.com/topic/97186-cropping-an-image/#findComment-497339 Share on other sites More sharing options...
bobinindia Posted March 21, 2008 Author Share Posted March 21, 2008 png with taking the corners off with ImageMagick is where i am at now. putting an image onto a flat round surface is my clients need.(for KeeB) Any more help most welcome. Link to comment https://forums.phpfreaks.com/topic/97186-cropping-an-image/#findComment-497401 Share on other sites More sharing options...
Barand Posted March 21, 2008 Share Posted March 21, 2008 Doesn't ImageMagick have a built-in vignette option? Link to comment https://forums.phpfreaks.com/topic/97186-cropping-an-image/#findComment-497411 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.