shana0780 Posted February 2, 2013 Share Posted February 2, 2013 Bonjour, J'essaie de charger un logo mais j'ai le message suivant : L'image est trop grande (316 ko). Taille max. : 300 ko Comment modifier la taille maximal du logo ? Link to comment Share on other sites More sharing options...
be_tnt Posted February 2, 2013 Share Posted February 2, 2013 (edited) Hello! D'après ce que je vois dans le controller AdminTheme, cette limite est hardcodé: protected function updateLogo($field_name, $logo_prefix) { $id_shop = Context::getContext()->shop->id; if (isset($_FILES[$field_name]['tmp_name']) && $_FILES[$field_name]['tmp_name']) { if ($error = ImageManager::validateUpload($_FILES[$field_name], 300000)) $this->errors[] = $error; ..... Pour pouvoir modifier cette valeur, tu vas devoir surcharger ce controller. Autre solution: diminuer le poids de ton logo. Edited February 2, 2013 by be_tnt (see edit history) Link to comment Share on other sites More sharing options...
shana0780 Posted February 3, 2013 Author Share Posted February 3, 2013 Hello! D'après ce que je vois dans le controller AdminTheme, cette limite est hardcodé: protected function updateLogo($field_name, $logo_prefix) { $id_shop = Context::getContext()->shop->id; if (isset($_FILES[$field_name]['tmp_name']) && $_FILES[$field_name]['tmp_name']) { if ($error = ImageManager::validateUpload($_FILES[$field_name], 300000)) $this->errors[] = $error; ..... Pour pouvoir modifier cette valeur, tu vas devoir surcharger ce controller. Autre solution: diminuer le poids de ton logo. Le problème, en PNG, pas évident de diminuer. Je crois bien que je vais devoir opter pour le JPG Link to comment Share on other sites More sharing options...
Philip's Posted February 4, 2013 Share Posted February 4, 2013 Bonjour, essaie cette application connu des webmaster, elle consiste à diminuer la taille de l'image sans perte de la qualité : http://www.smushit.com/ysmush.it/ 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