Библиотека PhpThumb.
Для работы с изображениями можно использовать любую библиотеку php.
Можете работать со стандарной prestashop. Тогда нужно подключить файл config.inc.php.
Добавление изображений к товару:
<?php
$image = new Image(null,Context::getContext()->language->id);
$image->id_product = $product->id;
$image->cover = true;
$image_path = 'test.jpg';
$images_types = ImageType::getImagesTypes('products');
if (!$image->add())
{
exit(Tools::jsonEncode(array('error' => Tools::displayError('Error save file.'))));
}
else
{
$new_image_path = $image->getPathForCreation();
ImageManager::resize($image_path, $new_image_path .'.'.$image->image_format);
foreach ($images_types as $image_type)
{
if (!ImageManager::resize($image_path, $new_image_path.'-'.Tools::stripslashes($image_type['name']).'.'.$image->image_format, $image_type['width'], $image_type['height'], $image->image_format))
exit(Tools::jsonEncode(array('error' => Tools::displayError('Error creating copy file').' '.Tools::stripslashes($image_type['name']))));
}
$image->update();
}