Cropping error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Cropping error (/showthread.php?tid=6028) |
Cropping error - El Forum - 02-12-2008 [eluser]Céd'[/eluser] Hi there, Here's the problem : my script gets images from the user's computer, after having been successfully uploaded on the server, the user is invited to crop it manually (150*150 px) via an AJAX interface. Everything was OK, until i discover that some pictures weren't cropped correctly. Most of the time, the crop is generated correctly, but randomly i got some 150*130 px or 150*113px thumbnails. If someone can help, it will be very appreciated. Here's the configuration of the cropping script : Code: $config['image_library'] = 'GD2'; Cropping error - El Forum - 02-12-2008 [eluser]Céd'[/eluser] Ok I got it... I forgot that config option : Code: $config['maintain_ratio'] = FALSE; My bad... i'm a fool :-) |