• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.