What libraries can you recommend for processing images in php? Or maybe better to use the standard features? I need to resize images.
|
2 answers
Use WideImage :
$res = $img->resize(250, 1000);
But it will require PHP 5.2+ and the GD library. To find out the version of php and check if the GD library is active, use the script
<?php echo phpinfo(); ?>
|
The standard GD library for resizing is enough)
|
$ convert -resize 600x400 source.jpg destination.jpg
- Alex Kapustinsystem('convert -resize 600x400 source.jpg destination.jpg')
must be installed imagemagick and add the full path to the program: convert - Alex Kapustin