Welcome Guest, Not a member yet? Register   Sign In
Mistake in the User Guide
#1

[eluser]dorwin[/eluser]
http://ellislab.com/codeigniter/user-gui...ading.html

all below on Explanation part :

image_heigth Image height

Variable name is image_height and not image_heigth !

It can lead to error if c/p abuse Wink (Or non english friendly)

Thanks !
#2

[eluser]Unknown[/eluser]
Yes!

Thanks for the explanation Dorwin, I haved the same problem and I don't see the mistake... :S
#3

[eluser]Derek Allard[/eluser]
Thanks. Fixed in the repo.
#4

[eluser]Konfine[/eluser]
I'd also like to point out here that on the user guide that under the Image Manipulation class 'Processing an Image' the code shows an example of:-

Code:
$config['image_library'] = 'gd2';
$config['source_image'] = '/path/to/image/mypic.jpg';
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 75;
$config['height'] = 50;

$this->load->library('image_lib', $config);

$this->image_lib->resize();

If you take this example you'll find that it doesn't actually perform the width/height as requested, you need to use initialize before doing the resize.

Just a bug I found while allowing to upload an avatar image.

Cheers




Theme © iAndrew 2016 - Forum software by © MyBB