What libraries can you recommend for processing images in php? Or maybe better to use the standard features? I need to resize images.

  • $ convert -resize 600x400 source.jpg destination.jpg - Alex Kapustin
  • Did not understand what you wanted to say? - Arthur Lodenev pm
  • one
    [Image scaling] [1] [1]: hashcode.ru/questions/94914/… - ReinRaus
  • >> I do not understand what you want to say? roughly speaking: system('convert -resize 600x400 source.jpg destination.jpg') must be installed imagemagick and add the full path to the program: convert - Alex Kapustin

2 answers 2

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)