Welcome Guest, Not a member yet? Register   Sign In
Image Manipulation Class - cropping
#1

[eluser]dandys997[/eluser]
Hi there,
I've got one, short question: I've got a picture (JPG, 525x600), which I should crop properly. I want to "cut" it from a left top corner at position (0, 100) and crop should be 525 px wide and 100 px tall. How should I set the config for IMC?
Now, I've got this code:

Code:
$config['source_image']="./path/to/image.jpg
$config['x_axis']=0;
$config['y_axis']=100;
$config['width']=525;
$config['height']=100;

But it doesn't crop the image correctly. What's wrong with it?

Thanks in advance for help.




Theme © iAndrew 2016 - Forum software by © MyBB