**SPIP**
# Article submitted
The article "**\_LOGO\_MAX_WIDTH**
(https://www.spip.net/ecrire/?exec=article&id_article=6554)" is submitted
for publication. on Friday 15 May 2020.
* * *
## \_LOGO\_MAX_WIDTH
Friday 15 May 2020 , by [jack](.././?page=auteur&id_auteur=593&)
This constant defines the maximum width in pixels below which SPIP will
accept to register a logo [1] .
It is possible to define this constant in your file
`config/mes_options.php` (see the article dedicated to it
(https://www.spip.net/ecrire/?exec=article&id_article=4654))
*Important</strong>
**For this width limitation to be taken into account, you must also give a
value to the constant \_LOGO\_MAX_HEIGHT
(https://www.spip.net/ecrire/?exec=article&id_article=5452).**
- Default value: ``
example :
// Logos larger than 500 pixels wide will not be registered.
define
(http://www.php.net/define)
(
'_LOGO_MAX_WIDTH'
,
500
)
;
When this constant is set to `` (zero), SPIP does not carry out a check
when the logo is uploaded.
See also: \_LOGO\_MAX\_SIZE
(https://www.spip.net/ecrire/?exec=article&id_article=5448) et
\_LOGO\_MAX\_HEIGHT
(https://www.spip.net/ecrire/?exec=article&id_article=5452).
[1] due to the way the upload forms work, the logo file will still be sent
to the server. It is only once "*uploaded*" that SPIP will check the
conformity of this file with the constant
— Sent by SPIP (https://www.spip.net/)
---------------------------------------------------------------------------

![]()