PUBLISHED : _LOGO_MAX_WIDTH

**SPIP**

# Article validated

The article "**\_LOGO\_MAX_WIDTH**
(https://www.spip.net/en_article6554.html)" was validated by
<multi>[ar]جورج[fr]George [en]George</multi>.

* * *

## \_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 store 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=4909))

*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=6555).**
- Default value: ``

example :

    // Logos larger than 500 pixels wide will not be registered.

    define
    
     (http://www.php.net/define)
    
    &#40;

    '_LOGO_MAX_WIDTH'

    ,

    500

    &#41;

    ;

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=6556) et
\_LOGO\_MAX\_HEIGHT
(https://www.spip.net/ecrire/?exec=article&id_article=6555).

[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/)

---------------------------------------------------------------------------

rubon199.jpg

puce.gif