Contre_Courant Posted May 8, 2020 Share Posted May 8, 2020 (edited) Bonjour, J'ai cherché une réponse a mon problème pendant plusieurs heures sans rien trouvé (mais peut être ai je mal cherché). J'aimerais agrandir les images apparaissant sur le catalogue produits du back office d'une boutique en Prestashop 1.7.1.2, je les trouve beaucoup trop petites. J'ai tenter de changer la taille dans le Helperlist $this->_list[$index][$key] = ImageManager::thumbnail($path_to_image, $this->table.'_mini_'.$item_id.'_'.$this->context->shop->id.'.'.$this->imageType, 100, $this->imageType); mais sans succès, les images générées dans le dossier img/tmp reste sur une résolution de 45x45px. Si quelqu’un a une solution je suis preneur. D'avance merci. Edited May 8, 2020 by Contre_Courant (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted May 8, 2020 Share Posted May 8, 2020 Oui, videz le répertoire /img/tmp ^^ Link to comment Share on other sites More sharing options...
Contre_Courant Posted May 8, 2020 Author Share Posted May 8, 2020 Salut, merci pour ta réponse. J'ai déjà vidé le dossier et vider le cache. Link to comment Share on other sites More sharing options...
doekia Posted May 8, 2020 Share Posted May 8, 2020 comodore64 ou amiga ? Link to comment Share on other sites More sharing options...
Contre_Courant Posted May 8, 2020 Author Share Posted May 8, 2020 3 minutes ago, doekia said: comodore64 ou amiga ? Mise a jour de la description, merci pour l'aide Link to comment Share on other sites More sharing options...
Contre_Courant Posted May 8, 2020 Author Share Posted May 8, 2020 (edited) J'ai donc trouvé la réponse a ma question. Il suffit d'aller chercher le fichier www/src/Adapter/ImageManager.php Et trouver la ligne: $thumbPath = \ImageManager::thumbnail($path_to_image, $tableName.'_mini_'.$imageId.'.'.$imageType, 45, $imageType); Puis le remplacer par: $thumbPath = \ImageManager::thumbnail($path_to_image, $tableName.'_mini_'.$imageId.'.'.$imageType, 100, $imageType); Merci. Edited May 8, 2020 by Contre_Courant (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted May 8, 2020 Share Posted May 8, 2020 J'ai également trouvé la réponse a ma question, car en 1.6 la section dans ImageManager n'existe pas. Link to comment Share on other sites More sharing options...
Contre_Courant Posted May 8, 2020 Author Share Posted May 8, 2020 En 1.6 je crois que c'est: $product['image_tag'] = ImageManager::thumbnail(_PS_IMG_DIR_.'p/'.$product['image']->getExistingImgPath().'.jpg', $name, 45, 'jpg'); Link to comment Share on other sites More sharing options...
doekia Posted May 8, 2020 Share Posted May 8, 2020 En 1.6, exactement comme te l'a répondu @Eolia, c'est bien dans HelperList, mais ils faut vider le répertoire tmp classes/helper/HelperList.php ligne 298: $this->_list[$index][$key] = ImageManager::thumbnail($path_to_image, $this->table.'_mini_'.$item_id.'_'.$this->context->shop->id.'.'.$this->imageType, 45, $this->imageType); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now